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
According to the Mustache spec, rendering a section by accessing a boolean value like current this should happen:
use a single-element list containing the data, otherwise use an empty list. For each element in the data list, the element MUST be pushed onto the context stack, the section MUST be rendered, and the element MUST be popped off the context stack.
This adds a bunch of fully integrated test sites.
While here, fix some bugs:
- Fix not being able to read `.md` or `.yaml` files instead of `.mkd` and `.yml`. #22
- Fix title casing. #3
- Fix iterate `siblings` in correct order. #4
- Fix crash for non-existent asset directories. #5
- Fix rendering section context. #8 (Needs cbroglie/mustache#54)
- Fix rendering non-false value sections. #23 (Needs cbroglie/mustache#55)
Also, add these features:
- Allow the root index page to be defined with metadata and markup directly in `content/`. #19
- Add support for empty pages (no metadata or markup defined) if they have non-empty children. #20
- Add support for `children` to iterate non-floating child pages. #16
- Add support for `posts` to iterate all child pages marked with a date. #18
- Add support for `menu` sections to iterate all `siblings` and the current page (only for non-floating pages). #17
- For each entry of page collections (`children`, `menu`, `navigation`, `posts`, `siblings`) add `first` and `last` boolean values that can be used to construct better separators. #21
According to the Mustache spec, rendering a section by accessing a boolean value like
current
this should happen:—https://github.com/mustache/spec/blob/master/specs/sections.yml
This means, that a block like this:
should render
for this context:
But instead it renders:
as the variables inside the
current
will be resolved from the top level not the iteratednavigation
.The text was updated successfully, but these errors were encountered: