Merge pull request #2497 from ZhenShuo2021/chore/icon-title

🔧 Chore: add title to icons
This commit is contained in:
Nuno C.
2025-09-23 15:56:36 +01:00
committed by GitHub
3 changed files with 18 additions and 18 deletions

View File

@@ -42,9 +42,12 @@
href="{{ $link }}"
target="_blank"
aria-label="{{ $name | title }}"
rel="me noopener noreferrer"
><span class="inline-block align-text-bottom">{{ partial "icon.html" $name }}</span></a
>
title="{{ $name | title }}"
rel="me noopener noreferrer">
<span class="inline-block align-text-bottom">
{{ partial "icon.html" $name }}
</span>
</a>
{{ end }}
{{ end }}
</div>

View File

@@ -70,11 +70,10 @@
href="{{ $url }}"
target="_blank"
aria-label="{{ $name | title }}"
rel="me noopener noreferrer"
>{{ partial
"icon.html" $name
}}</a
>
title="{{ $name | title }}"
rel="me noopener noreferrer">
{{ partial "icon.html" $name }}
</a>
{{ end }}
{{ end }}
</div>

View File

@@ -83,22 +83,20 @@
href="{{ $url }}"
target="_blank"
aria-label="{{ $name | title }}"
rel="me noopener noreferrer"
>{{ partial
"icon.html" $name
}}</a
>
title="{{ $name | title }}"
rel="me noopener noreferrer">
{{ partial "icon.html" $name }}
</a>
{{ else }}
<a
class="px-1 hover:text-primary-400 text-primary-800 dark:text-primary-200"
href="{{ $url }}"
target="_blank"
aria-label="{{ $name | title }}"
rel="me noopener noreferrer"
>{{ partial
"icon.html" $name
}}</a
>
title="{{ $name | title }}"
rel="me noopener noreferrer">
{{ partial "icon.html" $name }}
</a>
{{ end }}
{{ end }}
{{ end }}