Initial commit
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user