blob: 394dd97ae5de46eba1e314b669b475e55c0640e4 (
plain) (
tree)
|
|
{% extends "base.html" -%}
{%- block title -%}
{%- if page.title -%}
{{ page.title }}
{%- else -%}
post № {{ page.slug }}
{%- endif -%}
{%- endblock title -%}
{%- block description %}
post № {{ page.slug }}
{%- 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 %}
|