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/macros.html | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 templates/macros.html (limited to 'templates/macros.html') diff --git a/templates/macros.html b/templates/macros.html new file mode 100644 index 0000000..9f0f792 --- /dev/null +++ b/templates/macros.html @@ -0,0 +1,43 @@ +{% macro render_post(post, mention=false, in_feed=true) -%} +{% if mention -%} +
+{% else -%} +
+{% endif -%} +
+ {{ config.extra.author }} + +
+
{{ post.content | safe }}
+
+{% endmacro render_post -%} + +{%- macro render_pagination(paginator) %} +{%- if paginator.number_pagers > 1 %} + +{%- endif %} +{%- endmacro render_pagination -%} + +{%- macro render_tags(tags) %} +{%- for tag in tags %} +
  • {{ tag }}
  • +{%- endfor %} +{%- endmacro render_tags %} -- cgit v1.2.3-2-gb3c3