summaryrefslogtreecommitdiffstatshomepage
path: root/templates/page.html
blob: 0a7b3fd980f3338ca1a3b6ec5994b7bd0be9e118 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{% extends "base.html" -%}

{%- block content %}
{{ 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, class="mention") }}
{%- endfor %}
{%- endif %}
{%- endblock content %}