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.
2 parents e549c2a + c7ebe71 commit 60741d0Copy full SHA for 60741d0
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">{{ . | safeHTML }} </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