Add optional custom "title" for social links

This commit is contained in:
Netruk44 2022-08-03 08:46:53 -07:00 committed by GitHub
parent 30a2cc7a65
commit 6bed8a928b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
<div class="social-icons"> <div class="social-icons">
{{- range . }} {{- range . }}
<a href="{{ trim .url " " }}" target="_blank" rel="noopener noreferrer me" title="{{ .name | title }}"> <a href="{{ trim .url " " }}" target="_blank" rel="noopener noreferrer me" title="{{ or .title .name | title }}">
{{ partial "svg.html" . }} {{ partial "svg.html" . }}
</a> </a>
{{- end }} {{- end }}