FIX theme toggle

This commit is contained in:
Hoernschen 2024-01-06 20:44:35 +01:00
parent bfccca3b45
commit 553285c04b
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
9 changed files with 111 additions and 34 deletions

View file

@ -4,7 +4,7 @@ odd: 0 or 1
hero:
avatar: image
greeting: string
social: array
social: icon
type: string
url: string
content: string
@ -19,6 +19,13 @@ content: string
<div>
<h1>{{ .greeting }}</h1>
<h3>{{ .introduction }}</h3>
{{ if .social }}
<div class="social">
{{ range .social }}
{{ partial "components/icon.html" . }}
{{ end }}
</div>
{{ end }}
</div>
</div>
{{ end }}