From 5a05ca47edca3a5cf8fad2e19a533faaa1c7b362 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 2 Jan 2026 15:16:23 +0200 Subject: Implement now page --- templates/macros.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'templates/macros.html') diff --git a/templates/macros.html b/templates/macros.html index b4cb6d0..3922659 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -26,3 +26,20 @@ {% endfor %} {% endmacro %} + +{% macro page_h1(page) %} +

+ {{ page.title }}
+ {% if page.date %} + ({{ page.date }}) + {% endif %} + {% if page.extra.kind %} + [{{ page.extra.kind }}] + {% endif %} +

+{% endmacro %} + +{% macro page_content(page) %} +{{ self::page_h1(page=page) }} +{{ page.content | replace(from="", to=macros::toc(page=page)) | safe }} +{% endmacro %} -- cgit v1.3