From ad2be2b20c337d99ebe6e7d4b8cf6106cfba77df Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sat, 12 Jun 2021 14:21:59 +0200 Subject: Initial commit --- templates/page.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 templates/page.html (limited to 'templates/page.html') 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 -%} +· {{ page.title }} +{%- endif -%} +{%- endblock description %} + +{%- block content %} +{{ macros::render_post(post=page, in_feed=false) }} +{%- if "mentions" in page.extra and page.extra.mentions | length > 0 -%} +

Mentioned posts

+{%- 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 %} -- cgit v1.2.3-2-gb3c3