summaryrefslogtreecommitdiff
path: root/templates/blog.html
blob: 3e187cb68aec88bb837cbec2af4ca8defa0cc681 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% extends "base.html" %}

{% 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">
{% endblock %}

{% block json_ld %}
  {{ super() }}
  {% include "includes/blog-json-ld.html" %}
{% endblock json_ld %}

{% block styles %}
  {{ super() }}
  <link rel="stylesheet"
        type="text/css"
        href="{{ '/static/css/blog.css'|asseturl }}">
{% endblock %}

{% block content %}{{ render_blog_index(this.pagination) }}{% endblock %}