summaryrefslogtreecommitdiff
path: root/templates/blog.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/blog.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/blog.html b/templates/blog.html
index 4c011a1..3e187cb 100644
--- a/templates/blog.html
+++ b/templates/blog.html
@@ -2,6 +2,18 @@
{% from "macros/blog.html" import render_blog_index %}
+{% set features = namespace(trail=false) %}
+
+{% for post in this.pagination.items %}
+ {% for block in post.body.blocks %}
+ {% if block._flowblock == "trail" %}
+ {% set features.trail = true %}
+ {% endif %}
+ {% endfor %}
+{% endfor %}
+
+{% set needs_trail_assets = features.trail %}
+
{% block meta %}
{{ super() }}
<meta property="og:type" content="website">