mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.git
synced 2024-09-19 18:07:52 +00:00
11 lines
359 B
HTML
11 lines
359 B
HTML
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||
|
{{ $color := .Get "color" | default "primary" }}
|
||
|
<div class="alert alert-{{ $color }}" role="alert">
|
||
|
{{ with .Get "title" }}<h4 class="alert-heading">{{ . | safeHTML }}</h4>{{ end }}
|
||
|
{{ if eq .Page.File.Ext "md" }}
|
||
|
{{ .Inner | markdownify }}
|
||
|
{{ else }}
|
||
|
{{ .Inner | htmlUnescape | safeHTML }}
|
||
|
{{ end }}
|
||
|
</div>
|