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 }}" 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>

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>

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 }}