wonderfulfrog.com/src/_layouts/book.html
2024-02-18 00:54:23 -08:00

28 lines
1.1 KiB
HTML

---
layout: base
---
<article class="[ catalogue ] [ flow ]">
<time class="[ date ] [ flex items-center gap-0.5 my-1 ]"
datetime="{{ date }}">
{% include "svgs/calendar.svg" %}
{{ date | formatDate("MMMM Do YYYY") }}</time>
<section class="[ meta ] [ flex justify-between mb-1 gap-1 ]">
<div>
<h1>{{ title }}</h1>
{% if subtitle %}<h3 class="[ text-fadeText my-0.5 ]">{{ subtitle }}</h3>{% endif %}
{% if author %}<span class="[ text-fadeText ]">by</span> {{ author }}{% endif %}
{% if tags | filter(["catalogue", "book"]) | length > 0 %}
<ul class="[ flex list-none p-0 gap-0.5 ]">
{% for tag in tags | filter(["catalogue", "book"]) %}
<li class="[ bg-surface radius-1 px-1 py-0.5 ]">{{ tag }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% if image %}
<div>{% image image, "", "" %}</div>
{% endif %}
</section>
{{ content | safe }}
</article>