summaryrefslogtreecommitdiffstatshomepage
path: root/templates/macros.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/macros.html10
1 files changed, 3 insertions, 7 deletions
diff --git a/templates/macros.html b/templates/macros.html
index 09b8a13..1ec8ab0 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -1,16 +1,12 @@
-{% macro render_post(post, mention=false, render_title=true) -%}
-{%- if mention %}
-<article class="mention">
-{%- else -%}
-<article>
-{%- endif %}
+{% macro render_post(post, class="feed") -%}
+<article class="{{ class }}">
<header>
<img class="avatar" alt="{{ config.extra.author }}" src="{{ config.extra.avatar }}" />
<div class="banner smaller">
<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 render_title and post.title %}<h2 class="mute">{{ post.title }}</h2>{% endif %}
+ {%- if class != "single" and post.title %}<h2 class="mute">{{ post.title }}</h2>{% endif %}
</div>
{%- if "tags" in post.taxonomies %}
<nav class="tags">