We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce969b commit 0724988Copy full SHA for 0724988
layouts/shortcodes/alert.html
@@ -1,4 +1,12 @@
1
<div class="alert alert-warning d-flex" role="alert">
2
- <div class="flex-shrink-1 alert-icon">{{ with .Get "icon" }}{{.}}{{ end }}</div>
3
- <div class="w-100">{{ with .Get "text" }}{{ . | safeHTML }}{{ end }}</div>
4
-</div>
+ <div class="flex-shrink-1 alert-icon">{{ with .Get "icon" }}{{.}} {{ end }}</div>
+ {{ with .Get "text"}}
+ <div class="w-100">{{ . }} </div>
5
+ {{ else }}
6
+ {{ with .Inner}}
7
+ <div class="w-100"> {{ . | markdownify}}</div>
8
9
+ {{ errorf "No valid text variable or Inner content given"}}
10
+ {{ end }}
11
+ {{ end}}
12
+</div>
0 commit comments