From 478a77b61a6afd95bd75c894a976184f669a8819 Mon Sep 17 00:00:00 2001 From: Brummel Date: Wed, 20 May 2026 23:54:14 +0200 Subject: [PATCH] feat: add section_title macro with optional anchor --- templates/macros/section_title.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 templates/macros/section_title.html diff --git a/templates/macros/section_title.html b/templates/macros/section_title.html new file mode 100644 index 0000000..1db100e --- /dev/null +++ b/templates/macros/section_title.html @@ -0,0 +1,14 @@ +{% macro section_title(title, anchor="") %} +
+
+ {%- if anchor %} +
+

{{ title }}

+
+ {%- else %} +

{{ title }}

+ {%- endif %} + +
+
+{% endmacro %}