From eb373a706fb2b3a74f685d619f6c29bf163a4889 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sat, 5 Oct 2024 12:51:57 +0200 Subject: Use gutter to mark related posts Now that we can put nicely-aligned content at the side we can use the space to mark the "Related posts" header in a nicer way. --- templates/page.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/page.html b/templates/page.html index 95f2d62..32d6e4c 100644 --- a/templates/page.html +++ b/templates/page.html @@ -3,7 +3,8 @@ {%- block content %} {{ macros::render_post(post=page, class="single") }} {%- if "related" in page.extra and page.extra.related | length > 0 -%} - + + {%- for ref in page.extra.related %} {%- set page = get_page(path=ref ~ "/index.md") -%} {{ macros::render_post(post=page, class="related") }} -- cgit v1.2.3-2-gb3c3