fix: book not showing author

This commit is contained in:
Devin Haska 2024-02-22 15:15:00 -08:00
parent 41b79ba54d
commit 47d015eedb
4 changed files with 9 additions and 4 deletions

View file

@ -15,7 +15,7 @@ imageCaption: ""
</div>
<section class="[ catalogue-meta ] [ flow ]">
{% block title %}<h1>{{ title }}</h1>{% endblock %}
{% block subtitle %}<h2 class="[ text-fadeText ]" style="--flow-space: 0.25em">{{ subtitle }}</h2>{% endblock %}
{% if subtitle %}<h2 class="[ text-fadeText ]" style="--flow-space: 0.25em">{{ subtitle }}</h2>{% endif %}
{{ tertiary | safe }}
{% if rating %}
<div class="[ flex justify-center ]">
@ -24,12 +24,12 @@ imageCaption: ""
</div>
{% endif %}
{% if filteredTags | length > 0 %}
<ul class="[ categories list-none p-0 ] [ cluster justify-center ]">
<ul class="[ categories list-none p-0 mb-0 ] [ cluster justify-center ]">
{% for tag in filteredTags %}<li class="[ flex gap-0.25 ]">{{ tag }}</li>{% endfor %}
</ul>
{% endif %}
</section>
<hr class="[ my-1 ]" />
<hr class="[ my-1.5 ]" />
{% from "macros/date.njk" import format %}
{{ format(date) }}
{% block content %}{{ content | safe }}{% endblock %}

View file

@ -1,7 +1,7 @@
{% macro stars(number) %}
{% set filledStars = number %}
{% set emptyStars = 5 - number %}
<ul class="[ stars ] [ flex list-none p-0 text-primary ]" aria-description="{{ number }} out of 5 stars">
<ul class="[ stars ] [ flex list-none p-0 m-0 text-primary ]" aria-description="{{ number }} out of 5 stars">
{% for i in range(0, filledStars) %}
<li>{% include "svgs/star.svg" %}</li>
{% endfor %}

View file

@ -3,4 +3,8 @@ module.exports = {
tags: "book",
permalink: "catalogue/books/{{ page.fileSlug }}/index.html",
linkTitle: "View book details",
eleventyComputed: {
tertiary: (data) =>
`<p style="--flow-space: 0.5em"><span class="[ text-fadeText ]">by</span> ${data.author}</p>`,
},
};

View file

@ -5,6 +5,7 @@ date: 2024-01-27
image: https://cdn.wonderfulfrog.com/Citizen_Sleeper_cover_art.jpg
tags: ["pc"]
year: 2022
rating: 4
---
I loved the dice system that powered the entire game. It made it feel like you have control over the situation (you can choose where to put your dice rolls), but at the same time none at all (the result is still a dice roll). I especially liked that every choice never felt like a great option. Every choice will inadvertently affect someone or something else negatively. There was never a clear-cut best choice.