homepage iniT

This commit is contained in:
2026-08-23 20:00:09 +02:00
commit a1cd25c756
72 changed files with 5978 additions and 0 deletions
@@ -0,0 +1,30 @@
{{ $emojis := dict
"tip" ":bulb:"
"note" ":page_with_curl:"
"info" ":information_source:"
"warning" ":warning:"
"caution" ":exclamation:"
"danger" ":bangbang:"
}}
{{ if eq .Type "alert" }}
<blockquote class="alert alert-{{ .AlertType }}">
<div class="alert-heading">
<p class="alert-heading-emoji">
{{ transform.Emojify (index $emojis .AlertType) }}
</p>
<p class="alert-heading-text">
{{ with .AlertTitle }}
{{ . }}
{{ else }}
{{ or (i18n .AlertType) (title .AlertType) }}
{{ end }}
</p>
</div>
{{ .Text }}
</blockquote>
{{ else }}
<blockquote>
{{ .Text }}
</blockquote>
{{ end }}
@@ -0,0 +1,6 @@
<a
href="{{ .Destination }}"
{{ with .Title }}title="{{ . }}"{{ end }}
{{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noopener"{{ end }}
>{{ .Text | safeHTML }}</a
>