diff options
| author | t <t@tjp.lol> | 2026-07-11 14:06:25 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-07-11 14:26:20 -0600 |
| commit | 768f5a9281cafba2f786955301363c83428fadee (patch) | |
| tree | 60c6610cb2e00faff99cc547d664769e02d90bbf /README.md | |
| parent | 70110768e512a2ac179c455b14cf5ed367a3afee (diff) | |
template names and directory links
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -19,11 +19,12 @@ All non-underscore `.tmpl` files are loaded into one named template set. Files ending in `.html.tmpl` or `.xml.tmpl` also render to the same path without the `.tmpl` suffix. Other `.tmpl` files only define reusable templates. -Markdown pages execute one of these required definitions: - -- `page` for ordinary paths -- `weblog` below `weblog/` -- `note` below `notes/` +Markdown pages select the first defined template matching their source path, +walking toward the site root before using the fallback. For example, +`notes/recipes/cocktails/old_fashioned.md` checks +`notes/recipes/cocktails/old_fashioned`, `notes/recipes/cocktails`, +`notes/recipes`, `notes`, then `page`. Set a different fallback with +`-fallback template`; it defaults to `page`. Template data exposes the current page fields (`.Title`, `.Meta`, `.Sections`, `.OutputPath`, and so on) plus `.Pages`, a map containing each Markdown page at |
