You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had a similar idea but it was really just a poor replacement for a database. I had only been thinking in terms of the website though, probably a JSON file that can be loaded? Not sure if there is an existing JS library that does it or if JBake can help with this.
I'd argue that a document is a good starting point before you need a database.
A database adds lots of complexity whereas a static JSON/YAML document provides your data model without the the additional concerns. In the main I can see the data being pretty static in nature so value of a database initially feels minimal.
@jonbullock can maybe comment on how/if we can load a structured data file and reference it during the static site generation
Yeah JBake supports data files in YAML format (JSON support shouldn't be that much work to support). The contents is parsed, saved into the content store and exposed to the template engines. It's quite a recent addition and used on the optaplanner.org website to list events.
I was thinking it would be nice if we could add some config to a file that described an event e.g.
We could then use this to drive the Event page of the website but we could also use it to:
This might be something we can automate using GitHub actions
The text was updated successfully, but these errors were encountered: