dapper icon indicating copy to clipboard operation
dapper copied to clipboard

Properly document available variables

Open smls opened this issue 9 years ago • 1 comments

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.

smls avatar Aug 17 '15 10:08 smls

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, ...
  • ...

olaf-beh avatar Apr 16 '16 12:04 olaf-beh