mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2025-02-25 21:56:54 +01:00
Add: Icons to alert shortcode
This commit is contained in:
parent
eb62eb693c
commit
b1c676c2d4
1 changed files with 13 additions and 1 deletions
|
@ -1 +1,13 @@
|
||||||
<div class="alert {{ with .Get "theme" }}alert-{{.}}{{ end }}" role="alert" data-dir="{{ with .Get "dir" }}{{.}}{{ else }}ltr{{ end }}">{{ .Inner | markdownify }}</div>
|
<div class="alert {{ with .Get "theme" }}alert-{{.}}{{ end }}" role="alert" data-dir="{{ with .Get "dir" }}{{.}}{{ else }}ltr{{ end }}">
|
||||||
|
|
||||||
|
{{ $alert := .Get "theme" }}
|
||||||
|
{{ if findRE "info" $alert }}
|
||||||
|
<i class="nf nf-fa-info_circle" style="font-size: 28px;"></i>
|
||||||
|
{{ else if findRE "warning" $alert }}
|
||||||
|
<i class="nf nf-fa-warning" style="font-size: 28px;"></i>
|
||||||
|
{{ else if findRE "danger" $alert }}
|
||||||
|
<i class="nf nf-oct-stop" style="font-size: 28px;"></i>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ .Inner | markdownify }}
|
||||||
|
</div>
|
Loading…
Add table
Reference in a new issue