blog/_includes/layouts/post.njk
James Walker b7f6def94d
All checks were successful
continuous-integration/drone/push Build is passing
💄 ui touches
2024-06-11 15:50:39 -04:00

29 lines
1002 B
Plaintext

{% extends 'layouts/default.njk' %}
{% block content %}
<article class="h-entry prose lg:prose-lg dark:prose-invert" role="article">
<header>
<h1 class="p-name">{{ title }}</h1>
</header>
{% if image %}
<figure class="md:-mx-12">
<img class="u-featured rounded-md shadow-md w-full" src="{{ image }}" alt="{{ image_alt }}">
{% if image_caption %}
<figcaption>
<cite>{{ image_caption }}</cite>
</figcaption>
{% endif %}
</figure>
{% endif %}
<section class="e-content" load-external-scripts>
{{ content | safe }}
</section>
<footer class="flex flex-row not-prose">
<div class="basis-1/2">
<time class="dt-published" datetime="{{ date | date('ATOM') }}" pubdate>
<a class="u-url text-gray-500 text-sm" href="{{ post.url }}">{{ date | date }}</a>
</time>
</div>
</footer>
</article>
{% endblock %}