pbe/example-site/templates/partials/post.html
Gered 83d75d4885 represent post dates as a NaiveDateTime, still allowing for date-only
posts can be specified with a date only, or date and time as desired.
it is up to the site's specific template to render posts with an
appropriate date/time format string based on what the author's
preferences
2023-06-28 15:16:29 -04:00

16 lines
365 B
HTML

<article class="post">
<header>
<h1>{{ post.title }}</h1>
<div class="meta">
{{ post.date | date(format="%B %e, %Y") }} &mdash;
<span class="tags">
{%- for tag in post.tags -%}
<span><a href="/tag/{{ tag }}/">{{ tag }}</a></span>
{%- endfor -%}
</span>
</div>
</header>
<section>
{{ post.content_html | safe }}
</section>
</article>