💄 Only output icon styles if there is an icon

This commit is contained in:
James Panther
2021-11-06 13:05:29 +11:00
parent 968251bfca
commit 32640cac92
3 changed files with 16 additions and 12 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
<span class="relative inline-block align-text-bottom icon">
{{ $icon := resources.Get (print "icons/" . ".svg") }}
{{ if $icon }}
{{ $icon := resources.Get (print "icons/" . ".svg") }}
{{ if $icon }}
<span class="relative inline-block align-text-bottom icon">
{{ $icon.Content | safeHTML }}
{{ end }}
</span>
</span>
{{ end }}