diff options
author | Wolfgang Müller | 2021-06-12 14:21:59 +0200 |
---|---|---|
committer | Wolfgang Müller | 2021-06-12 14:21:59 +0200 |
commit | ad2be2b20c337d99ebe6e7d4b8cf6106cfba77df (patch) | |
tree | 65c0ddbb7828fd5b174eb531739097f83a3f17ee /templates/page.html | |
download | zunzuncito-ad2be2b20c337d99ebe6e7d4b8cf6106cfba77df.tar.gz |
Initial commit
Diffstat (limited to 'templates/page.html')
-rw-r--r-- | templates/page.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..8703c7c --- /dev/null +++ b/templates/page.html @@ -0,0 +1,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 %} |