Merge pull request #235 from OCram85/featureAlert
✨ Uses inline shortcode in alerts for large texts
This commit is contained in:
commit
60741d0cab
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue