Documentation
- includeInIndices option list in meta for documents (default:
[main]
) - document is included in those indices
- a document gets all pages in an index as metavariable
index
for use in its template- enabled by setting
index
for that page innebelhorn.yaml
- enabled by setting
- documents gets
prev
andnext
variables for the firstincludeInIndices
- every page will get
isActive.page.$TITLE
set andisActive.category.$CATEGORY_SLUG
for all its categories - TODO: pages that have indexFor get
isActive.index.$CATEGORY_SLUG
set
sources:
- source: src/page
output: page
template: templates/page.html
defaultCategories: [ ]
- source: src/lab
output: lab
template: templates/page.html
defaultCategories: [ "lab" ]
- source: src/topic
output: topic
template: templates/page.html
defaultCategories: [ "lab" ]
- source: src/post
output: post
template: templates/post.html
defaultCategories: [ "post" ]
- source: src/index.md
output: index.html
template: templates/page.html
defaultCategories: [ ]
# will set `indexFor: [ "post" ]` in the file itself
- source: src/posts.md
output: posts.html
template: templates/index.html
defaultCategories: [ ]