summaryrefslogtreecommitdiffstatshomepage
path: root/templates
diff options
context:
space:
mode:
authorWolfgang Müller2022-11-04 20:33:38 +0100
committerWolfgang Müller2022-11-04 20:33:38 +0100
commit2666c5768042bd0c7de7b774d82c6bd7bd02b9fb (patch)
treed540057fbd1b3112326d4a604b56974e28bf6bf4 /templates
parent71a942c6e9f04ff26b8404910a8a00adb51d7280 (diff)
downloadzunzuncito-2666c5768042bd0c7de7b774d82c6bd7bd02b9fb.tar.gz
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.
Diffstat (limited to 'templates')
-rw-r--r--templates/macros.html2
-rw-r--r--templates/page.html8
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/macros.html b/templates/macros.html
index f69eb08..dc621f9 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -4,7 +4,7 @@
<img class="avatar" alt="{{ config.extra.author }}" src="{{ config.extra.avatar }}" width="64" />
<div class="banner smaller">
<div class="info">
- <a class="bold-hover" title="permalink to this post" href="{{ post.permalink }}">{% if class == "mention" %}№ {{ post.slug }} {% else %}§{% endif %}</a>
+ <a class="bold-hover" title="permalink to this post" href="{{ post.permalink }}">{% if class == "related" %}№ {{ post.slug }} {% else %}§{% endif %}</a>
<time class="mute" datetime="{{ post.date }}" title="{{ post.date }}">{{ post.date | date(format="%F") }}</time>
<h2 class="mute title">{{ post.title }}</h2>
</div>
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 -%}
-<h3 class="mentions">Mentioned posts</h2>
-{%- for ref in page.extra.mentions %}
+{%- if "related" in page.extra and page.extra.related | length > 0 -%}
+<h3 class="related">Related posts</h2>
+{%- 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 %}