From f57c0d15c931563a55abdc9cea72d189a24f7456 Mon Sep 17 00:00:00 2001 From: Nicolas Paul Date: Mon, 1 May 2023 13:03:03 +0200 Subject: Add slug to HTML templates --- doc/src/doc/template.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/src') diff --git a/doc/src/doc/template.md b/doc/src/doc/template.md index bf0e387..ab209b9 100644 --- a/doc/src/doc/template.md +++ b/doc/src/doc/template.md @@ -41,6 +41,7 @@ The following variables are available: - `.Content`: The content of the document, as HTML. - `.Site`: The URL of the site. - `.Generator`: A string containing the name and version of the generator. +- `.Slug`: The slug of the document. > **Note:** The `.Content` variable is already HTML, so it does not need to be > escaped. @@ -58,6 +59,7 @@ Here is a sample template: +
-- cgit v1.2.3