feat: add catalogue page for individual items
This commit is contained in:
parent
4e0c778025
commit
f576d237d7
4 changed files with 25 additions and 1 deletions
16
src/_layouts/catalogue.html
Normal file
16
src/_layouts/catalogue.html
Normal 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>
|
3
src/assets/css/blocks/catalogue.css
Normal file
3
src/assets/css/blocks/catalogue.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
.catalogue .meta img {
|
||||
inline-size: 10rem;
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"layout": "base",
|
||||
"layout": "catalogue",
|
||||
"tags": "books",
|
||||
"permalink": "books/{{ page.fileSlug }}/index.html"
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"layout": "catalogue",
|
||||
"tags": "games",
|
||||
"permalink": "games/{{ page.fileSlug }}/index.html"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue