This commit is contained in:
parent
6e613d7b15
commit
5992869fd3
93 changed files with 9485 additions and 1277 deletions
24
themes/archie/layouts/shortcodes/callout.html
Normal file
24
themes/archie/layouts/shortcodes/callout.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
{{ $type := .Get "type" }}
|
||||
<div class='callout callout-{{ $type }}' style='{{ if eq $type "custom" }}{{ .Get "style" | safeCSS }}{{ end }}'>
|
||||
<div class="callout-inner">
|
||||
{{ if eq $type "alert" }}
|
||||
🚨 <u>Alert</u>
|
||||
<br />
|
||||
{{ .Get "text" }}
|
||||
{{ else if eq $type "custom" }}
|
||||
{{ .Get "emoji" }} <u>{{ .Get "title" }}</u>
|
||||
<br />
|
||||
{{ .Get "text" }}
|
||||
{{ else if eq $type "tip" }}
|
||||
🔎 <u>Tip</u>
|
||||
<br />
|
||||
{{ .Get "text" }}
|
||||
{{ else if eq $type "warning" }}
|
||||
⚠️ <u>Warning</u>
|
||||
<br />
|
||||
{{ .Get "text" }}
|
||||
{{ else}}
|
||||
💡 {{ .Get "text" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue