feat: add catalogue page for individual items

This commit is contained in:
Devin Haska 2024-02-09 22:36:14 -08:00
parent 4e0c778025
commit f576d237d7
4 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,16 @@
---
layout: base
---
<article class="[ catalogue ]">
<section class="[ meta ] [ flex justify-between mb-1 ]">
<div>
<h1>{{ title }}</h1>
<h2>{{ subtitle }}</h2>
</div>
{% if image %}
<div>{% image image, "", "" %}</div>
{% endif %}
</section>
{{ content | safe }}
</article>

View file

@ -0,0 +1,3 @@
.catalogue .meta img {
inline-size: 10rem;
}

View file

@ -1,5 +1,5 @@
{
"layout": "base",
"layout": "catalogue",
"tags": "books",
"permalink": "books/{{ page.fileSlug }}/index.html"
}

View file

@ -0,0 +1,5 @@
{
"layout": "catalogue",
"tags": "games",
"permalink": "games/{{ page.fileSlug }}/index.html"
}