Rename icon name to title

This commit is contained in:
Will Faught
2023-09-24 18:45:02 -07:00
parent f05f002f2d
commit 4e030066f0
4 changed files with 10 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
{{ $class := .Get 0 | default (.Get "class") }}
{{ $name := .Get "name" }}
{{ $title := .Get "title" }}
{{ $url := .Get "url" }}
{{ if not $class }}
@@ -8,10 +8,10 @@
<span class="paige-icon">
{{ with $url }}
<a href="{{ . }}" {{ with $name }} title="{{ . }}" {{ end }}>
<a href="{{ . }}" {{ with $title }} title="{{ . }}" {{ end }}>
{{ end }}
<i class="{{ $class }}">{{ with $name }}<span class="visually-hidden">{{ . }}</span>{{ end }}</i>
<i class="{{ $class }}">{{ with $title }}<span class="visually-hidden">{{ . }}</span>{{ end }}</i>
{{ if $url }}
</a>