From 6ae65265b707f73a573a2da8918f02117eaa3120 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Fri, 13 Aug 2021 13:57:38 +0200 Subject: templates: Fix permalink content for mentioned posts A regular posts indicates its permalink with a section sign. However, for mentioned posts we'd like to be explicit about the post number, since we may refer to them this way in the parent post. This behaviour should have been working since day one in ad2be2b (Initial commit, 2021-06-12), but it was subtly broken. Since the render_post macro does not have access to the 'mention' variable, only the section sign would ever be used to indicate a permalink. This probably happened because the rendering code for a post used to live in the post template instead of a macro. --- templates/macros.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/macros.html') diff --git a/templates/macros.html b/templates/macros.html index d3ba894..ffa8641 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -4,7 +4,7 @@ {{ config.extra.author }}