feat: update game content

This commit is contained in:
Devin Haska 2024-02-18 12:08:37 -08:00
parent 48450ec64f
commit 86f0122fd9
22 changed files with 54 additions and 10 deletions

View file

@ -2,6 +2,7 @@
layout: base
---
{% set filteredTags = tags | filter([tags[0], tags[1]]) %}
<article class="[ catalogue ] [ flow ]">
<time class="[ date ] [ flex items-center gap-0.5 my-1 ]"
datetime="{{ date }}">
@ -12,11 +13,9 @@ layout: base
<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 %}
{% if filteredTags | 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 %}
{% for tag in filteredTags %}<li class="[ bg-surface radius-1 px-1 py-0.5 ]">{{ tag }}</li>{% endfor %}
</ul>
{% endif %}
</div>

26
src/_layouts/game.html Normal file
View file

@ -0,0 +1,26 @@
---
layout: base
---
{% set filteredTags = tags | filter([tags[0], tags[1]]) %}
<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 ] [ mb-1 ]">
{% if image %}
{% image image, "", "" %}
{% endif %}
<div>
<h1>{{ title }}</h1>
<h2 class="[ text-fadeText my-0.5 ]">{{ year }}</h2>
{% if filteredTags | length > 0 %}
<ul class="[ flex list-none p-0 gap-0.5 ]">
{% for tag in filteredTags %}<li class="[ bg-surface radius-1 px-1 py-0.5 ]">{{ tag }}</li>{% endfor %}
</ul>
{% endif %}
</div>
</section>
{{ content | safe }}
</article>