fix: Le tag du titre ne soit pas être toujours le H1 de la page

This commit is contained in:
Simon 2024-02-02 13:52:11 +01:00
parent cee2e84194
commit b52179fd51
1 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
<header class="header"> <header class="box header">
<h1>Takubeh<br><small>Kombucha</small></h1> {{ $tag := cond .IsHome "h1" "div" }}
{{ printf "<%s class=\"title\">" $tag | safeHTML }}
Takubeh<br>
<small>Kombucha</small>
{{ printf "</%s>" $tag | safeHTML }}
</header> </header>