feat: Refactor all page layouts
All checks were successful
Build and Deploy / build_and_deploy (push) Successful in 1m33s

This commit is contained in:
Devin Haska 2025-05-31 21:46:33 -07:00
parent 409670c63a
commit 1772179b5d
Signed by: wonderfulfrog
SSH key fingerprint: SHA256:ejOGyH9064rJiikox4ykOHLeuUg1f9l8wmJxs+MzNw0
42 changed files with 97 additions and 125 deletions

View file

@ -1,3 +1,5 @@
{% from "macros/date.njk" import format %}
{% macro stars(number) %}
{% set filledStars = number %}
{% set emptyStars = 5 - number %}
@ -19,3 +21,13 @@
The following may contain spoilers!
</section>
{% endmacro %}
{% macro pageHeader(title, subtitle, date) %}
<header class="flow">
<div class="flow flow-space-3">
<h1>{{ title }}</h1>
{% if subtitle %}<h3 class="text-fadeText">{{ subtitle }}</h3>{% endif %}
</div>
{% if date %}{{ format(date) }}{% endif %}
</header>
{% endmacro %}