chore: add title to icons

This commit is contained in:
ZhenShuo Leo
2025-09-16 13:44:16 +08:00
parent 019388def8
commit 545febc7c0
3 changed files with 18 additions and 18 deletions
+6 -3
View File
@@ -42,9 +42,12 @@
href="{{ $link }}" href="{{ $link }}"
target="_blank" target="_blank"
aria-label="{{ $name | title }}" aria-label="{{ $name | title }}"
rel="me noopener noreferrer" title="{{ $name | title }}"
><span class="inline-block align-text-bottom">{{ partial "icon.html" $name }}</span></a rel="me noopener noreferrer">
> <span class="inline-block align-text-bottom">
{{ partial "icon.html" $name }}
</span>
</a>
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>
+4 -5
View File
@@ -70,11 +70,10 @@
href="{{ $url }}" href="{{ $url }}"
target="_blank" target="_blank"
aria-label="{{ $name | title }}" aria-label="{{ $name | title }}"
rel="me noopener noreferrer" title="{{ $name | title }}"
>{{ partial rel="me noopener noreferrer">
"icon.html" $name {{ partial "icon.html" $name }}
}}</a </a>
>
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>
+8 -10
View File
@@ -83,22 +83,20 @@
href="{{ $url }}" href="{{ $url }}"
target="_blank" target="_blank"
aria-label="{{ $name | title }}" aria-label="{{ $name | title }}"
rel="me noopener noreferrer" title="{{ $name | title }}"
>{{ partial rel="me noopener noreferrer">
"icon.html" $name {{ partial "icon.html" $name }}
}}</a </a>
>
{{ else }} {{ else }}
<a <a
class="px-1 hover:text-primary-400 text-primary-800 dark:text-primary-200" class="px-1 hover:text-primary-400 text-primary-800 dark:text-primary-200"
href="{{ $url }}" href="{{ $url }}"
target="_blank" target="_blank"
aria-label="{{ $name | title }}" aria-label="{{ $name | title }}"
rel="me noopener noreferrer" title="{{ $name | title }}"
>{{ partial rel="me noopener noreferrer">
"icon.html" $name {{ partial "icon.html" $name }}
}}</a </a>
>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}