dapper
dapper copied to clipboard
Properly document available variables
The README section on "Variables" has this to say about the site
hash: "All site variables are defined in _config.yml, and are available in layouts as [% site.* %]".
However, there is at least one important site variable which is not defined in _config.yml, namely site.pages
. I only found out about it because a completely unrelated example in that README happens to use it to demonstrate a for
statement. It would be nice if all the available variables were properly documented in the "Variable" section.
Yep, would be nice. Meanwhile you can find it in Mark's source. Here are some keys/variables for the page
hash from Dapper.pm
-
filename
-
slug
-
excerpt
-
year
,month
, ... - ...