diff options
author | Wolfgang Müller | 2021-06-16 15:26:30 +0200 |
---|---|---|
committer | Wolfgang Müller | 2021-06-16 17:03:47 +0200 |
commit | 276e7d3a0cea3b21823465c188d8baf76c868d07 (patch) | |
tree | 714e2f196714d6d517c13334c2b47f49cba429bf /templates/macros.html | |
parent | 635e7a68353be4ad9c2ac1ceac5fb7fc122d32fb (diff) | |
download | zunzuncito-276e7d3a0cea3b21823465c188d8baf76c868d07.tar.gz |
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.
Diffstat (limited to 'templates/macros.html')
-rw-r--r-- | templates/macros.html | 4 |
1 files changed, 2 insertions, 2 deletions
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 %} <article class="mention"> {%- else -%} @@ -10,7 +10,7 @@ <div class="info"> <a class="bold-hover" title="permalink to this post" href="{{ post.permalink }}">{% if mention %}№ {{ post.slug }} {% else %}§{% endif %}</a> <time class="mute" datetime="{{ post.date }}" title="{{ post.date }}">{{ post.date | date(format="%F %R") }}</time> - {%- if post.title %}<h2 class="mute">{{ post.title }}</h2>{% endif %} + {%- if render_title and post.title %}<h2 class="mute">{{ post.title }}</h2>{% endif %} {%- if post.draft %}<span class="warning">DRAFT</span>{% endif %} </div> {%- if "tags" in post.taxonomies %} |