Available keys

Here is a complete list of keys that can be used in templates, pages, posts and drafts and user data pages:

Key

Content

Availability

site.config.*

The configuration of the site, containing all the keys defined in _data/config.json. If the file is not defined, then the default config is used.

Templates, pages, posts/drafts, user data pages

site.data.*

The data defined in a data file, indexed by the file’s name (e.g. site.data.foo for the file _data/foo.json).

Templates, pages, posts/drafts, user data pages

site.pages

The complete list of pages that are present on the site. See flores.generator.Page for more info.

Templates, pages, posts/drafts, user data

site.posts

The complete list of posts that are present on the site. See flores.generator.Post for more info.

Templates, pages, posts/drafts, user data pages

site.blog.categories

The complete list of categories collected from all blog posts on the site.

Templates, pages, posts/drafts, user data pages

site.blog.tags

The complete list of tags collected from all blog posts on the site.

Templates, pages, posts/drafts, user data pages

site.*

The user data pages that are defined for the site. For example, user data pages stored in the _recipes directory will be accessible via site.recipes.

Templates, pages, posts/drafts, user data pages

page.* (for pages)

All the attributes of the page in the current context. See flores.generator.Page for the full list.

Templates (when used by pages or user data pages), pages, user data pages

page.* (for posts/drafts)

All the attributes of the post/draft in the current context. See flores.generator.Post for the full list.

Templates (when used by posts/drafts), posts/drafts.