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

{%- block content %}
{{ macros::render_post(post=page, in_feed=false) }}
{%- 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) }}
{%- endfor %}
{%- endif %}
{%- endblock content %}