summaryrefslogtreecommitdiffstatshomepage
path: root/templates/page.html
diff options
context:
space:
mode:
authorWolfgang Müller2021-06-16 16:06:06 +0200
committerWolfgang Müller2021-06-16 17:04:24 +0200
commit7fb5c0f88274637df2974fd06b8d9a6b42969d83 (patch)
tree17939ed86a6f9025ad6000acdde6f831c0ddd1c2 /templates/page.html
parent0adb42668c2a95986d06857f8cd6e39885d65c33 (diff)
downloadzunzuncito-7fb5c0f88274637df2974fd06b8d9a6b42969d83.tar.gz
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.
Diffstat (limited to '')
-rw-r--r--templates/page.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/page.html b/templates/page.html
index fc733d5..0a7b3fd 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,12 +1,12 @@
{% extends "base.html" -%}
{%- block content %}
-{{ macros::render_post(post=page, render_title=false) }}
+{{ macros::render_post(post=page, class="single") }}
{%- if "mentions" in page.extra and page.extra.mentions | length > 0 -%}
<h2 class="mentions">Mentioned posts</h2>
{%- for ref in page.extra.mentions %}
{%- set page = get_page(path=ref ~ "/index.md") -%}
-{{ macros::render_post(post=page, mention=true) }}
+{{ macros::render_post(post=page, class="mention") }}
{%- endfor %}
{%- endif %}
{%- endblock content %}