Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/adityatelange/hugo-PaperMod.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNetruk44 <DanielTylerPerry@gmail.com>2022-08-06 09:39:58 +0300
committerGitHub <noreply@github.com>2022-08-06 09:39:58 +0300
commit42fa989316c8630ca2adbc41a668aa2fe7574b5c (patch)
tree7e996152bc4a298ebfa2d825c197ebd6e209b1f4
parent30a2cc7a65e5cab93b7a3960be083a88996c1ecc (diff)
Add optional custom "title" for social links (#999)
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
-rw-r--r--layouts/partials/social_icons.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/social_icons.html b/layouts/partials/social_icons.html
index 7c16e30e..3f8d6a35 100644
--- a/layouts/partials/social_icons.html
+++ b/layouts/partials/social_icons.html
@@ -1,6 +1,6 @@
<div class="social-icons">
{{- 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="{{ (.title | default .name) | title }}">
{{ partial "svg.html" . }}
</a>
{{- end }}