{% macro list_posts(pages) -%} {% endmacro list_posts -%} {%- macro tags(page) %} {%- if page.taxonomies and page.taxonomies.tags %} tagged with {%- for tag in page.taxonomies.tags %} #{{ tag }} {%- if not loop.last %},{% endif -%} {% endfor %} {% endif -%} {% endmacro tags -%} {%- macro page_header(title) -%}

{{ title }}.

{%- endmacro content %} {% macro content(page) %}
{{ post_macros::page_header(title=page.title) }} {%- if page.date %}
Posted on {%- if page.draft %} DRAFT {% endif -%}
{% if page.updated %}
Updated on
{% endif -%}
{{ page.word_count }} words, {{ page.reading_time }} minute read
{% endif -%}
{{ post_macros::hero(page=page) }} {%- if page.extra.tldr %}
tl;dr: {{ page.extra.tldr }}
{% endif -%} {# Optional table of contents #} {%- if page.extra.toc | default(value=false) %} {%- if page.toc -%}

Table of Contents

{%- endif -%} {% endif -%}
{{ page.content | safe -}}
{%- if page.taxonomies and page.taxonomies.tags %}
this post is tagged with
{% endif -%}
{% endmacro content -%} {% macro hero(page) %} {%- if page.extra.hero %}
{{ page.extra.heroPrompt }} - generated using Stable Diffusion

{{ page.extra.heroPrompt }} - generated using Stable Diffusion

{% endif -%} {% endmacro hero -%}