fix(social): fix social link bug (#81)
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<a href="{{ index . `href` }}" rel="me noopener noreffer" target="_blank" title="{{ index . `title` }}">
|
||||
<a href="{{ index . `href` | safeURL }}" rel="me noopener noreffer" target="_blank" title="{{ index . `title` }}">
|
||||
{{- partial "function/icon.html" . -}}
|
||||
</a>
|
||||
|
||||
@@ -378,8 +378,8 @@
|
||||
|
||||
{{- /* 055: Mastodon */ -}}
|
||||
{{- with .Site.Params.Social.Mastodon -}}
|
||||
{{- $MastodonPrefix := $.Site.Params.Social.MastodonPrefix | default "https://mastodon.social/" -}}
|
||||
{{- $options := dict "href" $MastodonPrefix "title" "Mastodon" -}}
|
||||
{{- $MastodonPrefix := $.Site.Params.Social.MastodonPrefix | default "https://mastodon.social" -}}
|
||||
{{- $options := dict "href" (printf "%s/%s" $MastodonPrefix .) "title" "Mastodon" -}}
|
||||
{{- $options = dict "class" "fab fa-mastodon fa-fw" | merge $options -}}
|
||||
{{- partial "function/icon-link.html" $options -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user