summaryrefslogtreecommitdiffstatshomepage
path: root/templates
diff options
context:
space:
mode:
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 %}