From 7fb5c0f88274637df2974fd06b8d9a6b42969d83 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Wed, 16 Jun 2021 16:06:06 +0200 Subject: templates: Pass article class in render_post macro Instead of using boolean arguments to control the article class (and which parts of the article are rendered), accept a class string that is used directly. For now, check for the right class before rendering a title - an upcoming commit will change this to be cleaner. --- templates/macros.html | 10 +++------- templates/page.html | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'templates') 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 %} -
-{%- else -%} -
-{%- endif %} +{% macro render_post(post, class="feed") -%} +
{{ config.extra.author }}