diff --git a/src/_layouts/catalogue.html b/src/_layouts/catalogue.html new file mode 100644 index 0000000..6b203d1 --- /dev/null +++ b/src/_layouts/catalogue.html @@ -0,0 +1,16 @@ +--- +layout: base +--- + +
+
+
+

{{ title }}

+

{{ subtitle }}

+
+ {% if image %} +
{% image image, "", "" %}
+ {% endif %} +
+ {{ content | safe }} +
diff --git a/src/assets/css/blocks/catalogue.css b/src/assets/css/blocks/catalogue.css new file mode 100644 index 0000000..05fcd30 --- /dev/null +++ b/src/assets/css/blocks/catalogue.css @@ -0,0 +1,3 @@ +.catalogue .meta img { + inline-size: 10rem; +} diff --git a/src/content/catalogue/books/books.json b/src/content/catalogue/books/books.json index f955713..37fb026 100644 --- a/src/content/catalogue/books/books.json +++ b/src/content/catalogue/books/books.json @@ -1,5 +1,5 @@ { - "layout": "base", + "layout": "catalogue", "tags": "books", "permalink": "books/{{ page.fileSlug }}/index.html" } diff --git a/src/content/catalogue/games/games.json b/src/content/catalogue/games/games.json index e69de29..7a121dc 100644 --- a/src/content/catalogue/games/games.json +++ b/src/content/catalogue/games/games.json @@ -0,0 +1,5 @@ +{ + "layout": "catalogue", + "tags": "games", + "permalink": "games/{{ page.fileSlug }}/index.html" +}