summaryrefslogtreecommitdiffstatshomepage
path: root/templates/page.html
blob: ac9a4584b4181cc9ea084df0299c3d427ce1e903 (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 %}