feat: add star rating macro

This commit is contained in:
Devin Haska 2024-02-22 15:06:19 -08:00
parent 251ffdf1c4
commit 41b79ba54d
5 changed files with 31 additions and 0 deletions

View file

@ -17,6 +17,12 @@ imageCaption: ""
{% block title %}<h1>{{ title }}</h1>{% endblock %}
{% block subtitle %}<h2 class="[ text-fadeText ]" style="--flow-space: 0.25em">{{ subtitle }}</h2>{% endblock %}
{{ tertiary | safe }}
{% if rating %}
<div class="[ flex justify-center ]">
{% from "macros/utils.njk" import stars %}
{{ stars(rating) }}
</div>
{% endif %}
{% if filteredTags | length > 0 %}
<ul class="[ categories list-none p-0 ] [ cluster justify-center ]">
{% for tag in filteredTags %}<li class="[ flex gap-0.25 ]">{{ tag }}</li>{% endfor %}