Merge branch 'master' of github.com:h-enk/doks

This commit is contained in:
Henk Verlinde 2021-04-24 10:36:27 +02:00
commit fcc3c14948
1 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,12 @@
<div class="alert alert-warning d-flex" role="alert">
<div class="flex-shrink-1 alert-icon">{{ with .Get "icon" }}{{.}}{{ end }}</div>
<div class="w-100">{{ with .Get "text" }}{{ . | safeHTML }}{{ end }}</div>
</div>
<div class="flex-shrink-1 alert-icon">{{ with .Get "icon" }}{{.}} {{ end }}</div>
{{ with .Get "text"}}
<div class="w-100">{{ . | safeHTML }} </div>
{{ else }}
{{ with .Inner}}
<div class="w-100"> {{ . | markdownify}}</div>
{{ else }}
{{ errorf "No valid text variable or Inner content given"}}
{{ end }}
{{ end}}
</div>