From 276e7d3a0cea3b21823465c188d8baf76c868d07 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Wed, 16 Jun 2021 15:26:30 +0200 Subject: templates: Only render post title in the feed We can get rid of the post title in the banner since the base template now renders it in the main banner whenever we show a single post. --- templates/macros.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/macros.html') diff --git a/templates/macros.html b/templates/macros.html index 991a6b4..9aa913a 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -1,4 +1,4 @@ -{% macro render_post(post, mention=false, in_feed=true) -%} +{% macro render_post(post, mention=false, render_title=true) -%} {%- if mention %}
{%- else -%} @@ -10,7 +10,7 @@
{% if mention %}№ {{ post.slug }} {% else %}§{% endif %} - {%- if post.title %}

{{ post.title }}

{% endif %} + {%- if render_title and post.title %}

{{ post.title }}

{% endif %} {%- if post.draft %}DRAFT{% endif %}
{%- if "tags" in post.taxonomies %} -- cgit v1.2.3-2-gb3c3