summaryrefslogtreecommitdiffstatshomepage
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/macros.html4
-rw-r--r--templates/page.html2
2 files changed, 3 insertions, 3 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 %}
diff --git a/templates/page.html b/templates/page.html
index 07fe19d..fc733d5 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,7 +1,7 @@
{% extends "base.html" -%}
{%- block content %}
-{{ macros::render_post(post=page, in_feed=false) }}
+{{ macros::render_post(post=page, render_title=false) }}
{%- if "mentions" in page.extra and page.extra.mentions | length > 0 -%}
<h2 class="mentions">Mentioned posts</h2>
{%- for ref in page.extra.mentions %}