it would be nice to have a front-matter variable for sections that sets metadata for all pages recursively
use case 1: consider a drafts/ folder. drafts/_index.md might look like:
+++
[all]
draft = true
+++
use case 2: consider a blog/ folder, with a rust/ folder inside. blog/rust/_index.md might look like:
+++
[all.taxonomies]
tags = ["rust"]
+++
there is a drawback: if you want to tag a post rust and web, you’d have to write rust again.
use case 3: consider a website using extra to define each page’s navigation. extra.nav is an array of tables, each table defining name and url. blog/_index.md could look like:
+++
[[all.extra.nav]]
name = "back"
url = "/blog/"
+++
currently, some section variables apply to all pages, but most don’t. all would help making a distinction:
-
page_templatecould be obsoleted in favour ofall.template -
in_search_indexcould be obsoleted in favour ofall.in_search_index, and later reintroduced to apply to the section page itself, but not its child pages