💄 Clean up icon styles

This commit is contained in:
James Panther 2021-11-04 18:56:42 +11:00
parent a35b59a192
commit fd59564b81
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 10 additions and 8 deletions

View File

@ -28,10 +28,12 @@
href="{{ $href }}"
target="_blank"
rel="me noopener noreferrer"
><div class="">
<span class="mr-1">{{ partial "icon.html" $icon }}</span>{{ $text | emojify }}
</div></a
>
{{- with $icon -}}
<span class="mr-1">{{ partial "icon.html" . }}</span>
{{- end -}}
{{ $text | emojify }}
</a>
{{ end }}
{{ end }}
</div>

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 }}