Skip to content

Commit

Permalink
Remove whitespace inside icon shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
willfaught committed Jun 7, 2024
1 parent 72ca13c commit 2ca246b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/shortcodes/paige/icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
{{/* The markup below cannot be indented due to nested shortcodes within Markdown. */}}

<span class="paige-icon">
{{ with $url }}
{{- with $url -}}
<a href="{{ . }}" {{ with $target }} target="{{ . }}" {{ end }} {{ with $title }} title="{{ . }}" {{ end }}>
{{ end }}
{{- end -}}

<i class="{{ $class }}">{{ with $title }}<span class="visually-hidden">{{ . }}</span>{{ end }}</i>

{{ if $url }}
{{- if $url -}}
</a>
{{ end }}
{{- end -}}
</span>

0 comments on commit 2ca246b

Please sign in to comment.