From 2666c5768042bd0c7de7b774d82c6bd7bd02b9fb Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Fri, 4 Nov 2022 20:33:38 +0100 Subject: Use "related" instead of "mentions" Whilst we specifically mention related or relevant posts in some cases, sometimes related posts are added without any commentary. In that case it is confusing to name them "mentioned" without there being any mention of them in the post itself. Naming these kinds of posts "related" makes more sense and is clearer. --- templates/page.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates/page.html') diff --git a/templates/page.html b/templates/page.html index c11c1da..645c7f2 100644 --- a/templates/page.html +++ b/templates/page.html @@ -2,11 +2,11 @@ {%- block content %} {{ macros::render_post(post=page, class="single") }} -{%- if "mentions" in page.extra and page.extra.mentions | length > 0 -%} -

Mentioned posts

-{%- for ref in page.extra.mentions %} +{%- 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="mention") }} +{{ macros::render_post(post=page, class="related") }} {%- endfor %} {%- endif %} {%- endblock %} -- cgit v1.2.3-2-gb3c3