Files
kewt/site/docs/templates.md
N0\A b65c4c6665
All checks were successful
Lint / shellcheck (push) Successful in 18s
docs: updates for v1.6.0
2026-04-01 13:02:16 +02:00

885 B

title = "Templates"

Templates

When customizing template.html, the placeholders available are:

  • {{CONTENT}} - the generated content
  • {{TITLE}} - the generated title
  • {{NAV}} - the generated navigation
  • {{FOOTER}} - the configured footer
  • {{VERSION}} - the cache-busting string from versioning = true (e.g. ?v=12345678). Safe to use even if versioning is disabled (it will be empty).
  • {{CSS}} - the configured CSS file path
  • {{LANG}} - the configured document language
  • {{HEAD_EXTRA}} - meta-tags
  • {{HEADER_BRAND}} - header rendering the name and/or logo

When generate_search is enabled, kewt embeds a search bar into pages based on the search_in_header and search_in_footer config options. The search uses a search.json index generated at build time and a client-side JS script. No external dependencies are required.