summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--content/14/index.md2
-rw-r--r--content/15/index.md2
-rw-r--r--content/8/index.md2
-rw-r--r--content/9/index.md2
-rw-r--r--post.sh2
-rw-r--r--sass/style.sass2
-rw-r--r--templates/macros.html2
-rw-r--r--templates/page.html8
8 files changed, 11 insertions, 11 deletions
diff --git a/content/14/index.md b/content/14/index.md
index c1eb119..d125d8b 100644
--- a/content/14/index.md
+++ b/content/14/index.md
@@ -6,7 +6,7 @@ title = "A post from syys"
tags = ["experiments"]
[extra]
-mentions = [15]
+related = [15]
+++
I spent the last few days building a [cursed Gentoo
diff --git a/content/15/index.md b/content/15/index.md
index 9a1e97b..04f6cb2 100644
--- a/content/15/index.md
+++ b/content/15/index.md
@@ -6,7 +6,7 @@ title = "Minecraft on syys"
tags = ["experiments"]
[extra]
-mentions = [14]
+related = [14]
+++
I didn't expect this to actually work, but as half-jokingly mentioned in the {{
diff --git a/content/8/index.md b/content/8/index.md
index 608cc9b..7bfcbb0 100644
--- a/content/8/index.md
+++ b/content/8/index.md
@@ -6,7 +6,7 @@ title = "Applying patches with mutt(1)"
tags = ["git", "TIL"]
[extra]
-mentions = [9]
+related = [9]
+++
When maintaining a project sooner or later there comes the time when you need to
diff --git a/content/9/index.md b/content/9/index.md
index f22ed61..3a49f15 100644
--- a/content/9/index.md
+++ b/content/9/index.md
@@ -6,7 +6,7 @@ title = "git-am(1) and mail sorting"
tags = ["git", "TIL"]
[extra]
-mentions = [8]
+related = [8]
+++
In the {{ ref(id=8, text="previous post") }} I talked about a couple of
diff --git a/post.sh b/post.sh
index e037022..4028f14 100644
--- a/post.sh
+++ b/post.sh
@@ -16,7 +16,7 @@ print_front_matter() {
tags = []
[extra]
- mentions = []
+ related = []
+++
EOF
}
diff --git a/sass/style.sass b/sass/style.sass
index 1c9c352..1553227 100644
--- a/sass/style.sass
+++ b/sass/style.sass
@@ -56,7 +56,7 @@ a.bold-hover:hover
text-decoration: none
text-shadow: 0px 0px 1px var(--fg-href)
-h3.mentions
+h3.related
margin: 0
h2.title
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 %}