🚸 Allow icon to be specified in alert shortcode

This commit is contained in:
James Panther
2022-03-09 15:14:09 +11:00
parent c1857711ed
commit e5021c9d30
3 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<div class="flex px-4 py-3 rounded-md bg-primary-100 dark:bg-primary-900">
<span class="ltr:pr-3 rtl:pl-3 text-primary-400">
{{ partial "icon.html" "exclamation-triangle" }}
{{ partial "icon.html" (.Get 0 | default "exclamation-triangle") }}
</span>
<span class="dark:text-neutral-300">
{{- .Inner | markdownify -}}