sc0ttj / mdsh

A simple static site generator, using Markdown and Bash
https://sc0ttj.github.io/mdsh/
10 stars 0 forks source link

Improve available site data #81

Closed sc0ttj closed 4 years ago

sc0ttj commented 5 years ago

Do this only after doing https://github.com/sc0ttj/mdsh/issues/65

Data objects:

Associative arrays that represent a particular item or object on the page or site. There should be various data objects available to use in the templates.

These should be generated as the first step in the build process, so the data generated can be cached, and used in the templates, markdown files, and by all other parts of the build process.

These data objects should include:

blog:

page:

latest_posts:

related_posts:

Custom objects:

Just define an associative array or variable in data/site_date.sh (or something)...

Examples

sc0ttj commented 4 years ago

Closing as outdated... After merging the Data Folder PR, the site and page dat ais better, more consistent, and users can now define their own data in YML, CSV and sh files very easily...