💄 Clean up icon styles
This commit is contained in:
parent
a35b59a192
commit
fd59564b81
@ -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>
|
||||
|
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user