feat: Refactor all page layouts
All checks were successful
Build and Deploy / build_and_deploy (push) Successful in 1m33s
All checks were successful
Build and Deploy / build_and_deploy (push) Successful in 1m33s
This commit is contained in:
parent
409670c63a
commit
1772179b5d
42 changed files with 97 additions and 125 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue