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:
blog_title
blog_domain
blog_url
blog_language
blog_currency_symbol
blog_currency_code
blog_all_tags
blog_all_categories
...
page:
page_title
page_excerpt
page_url
page_created
page_modified
page_category
page_tags
page_prev
page_next
...
latest_posts:
post-name1
post-name2
post-name3
...
related_posts:
post-name4
post-name6
...
Custom objects:
Just define an associative array or variable in data/site_date.sh (or something)...
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...
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
:blog_title
blog_domain
blog_url
blog_language
blog_currency_symbol
blog_currency_code
blog_all_tags
blog_all_categories
...page
:page_title
page_excerpt
page_url
page_created
page_modified
page_category
page_tags
page_prev
page_next
...latest_posts
:post-name1
post-name2
post-name3
...related_posts
:post-name4
post-name6
...Custom objects:
Just define an associative array or variable in
data/site_date.sh
(or something)...Examples