summaryrefslogtreecommitdiffstatshomepage
path: root/templates/page.html
blob: 8703c7cb65bc03f52d4e61d180ff14e5ac514c42 (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
{% extends "base.html" -%}

{%- block title -%}
{%- if page.title -%}
{{ page.title }}
{%- else -%}
post № {{ page.slug }}
{%- endif -%}
{%- endblock title -%}

{%- block description %}
post № {{ page.slug }}
{%- if page.title -%}
· <em>{{ page.title }}</em>
{%- endif -%}
{%- endblock description %}

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