From 47d015eedbc055d2692af63fa7cb6d25f2364db7 Mon Sep 17 00:00:00 2001 From: Devin Haska Date: Thu, 22 Feb 2024 15:15:00 -0800 Subject: [PATCH] fix: book not showing author --- src/_includes/layouts/catalogue-item.html | 6 +++--- src/_includes/macros/utils.njk | 2 +- src/content/catalogue/books/books.11tydata.js | 4 ++++ src/content/catalogue/games/citizen-sleeper.md | 1 + 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/_includes/layouts/catalogue-item.html b/src/_includes/layouts/catalogue-item.html index 1ab61b5..9ea1164 100644 --- a/src/_includes/layouts/catalogue-item.html +++ b/src/_includes/layouts/catalogue-item.html @@ -15,7 +15,7 @@ imageCaption: ""
{% block title %}

{{ title }}

{% endblock %} - {% block subtitle %}

{{ subtitle }}

{% endblock %} + {% if subtitle %}

{{ subtitle }}

{% endif %} {{ tertiary | safe }} {% if rating %}
@@ -24,12 +24,12 @@ imageCaption: ""
{% endif %} {% if filteredTags | length > 0 %} -
-
+
{% from "macros/date.njk" import format %} {{ format(date) }} {% block content %}{{ content | safe }}{% endblock %} diff --git a/src/_includes/macros/utils.njk b/src/_includes/macros/utils.njk index 9abc927..90fe0ea 100644 --- a/src/_includes/macros/utils.njk +++ b/src/_includes/macros/utils.njk @@ -1,7 +1,7 @@ {% macro stars(number) %} {% set filledStars = number %} {% set emptyStars = 5 - number %} -