mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 10:56:16 +01:00
feat(socal): add support for custom MastodonPrefix
This commit is contained in:
parent
442f5b009a
commit
715cb005c9
3 changed files with 4 additions and 1 deletions
|
@ -246,6 +246,7 @@ dateFormatToUse = "2006-01-02"
|
||||||
#Googlescholar = "xxxx"
|
#Googlescholar = "xxxx"
|
||||||
#Researchgate = "xxxx"
|
#Researchgate = "xxxx"
|
||||||
#Mastodon = "xxxx"
|
#Mastodon = "xxxx"
|
||||||
|
#MastodonPrefix = "https://mastodon.technology/"
|
||||||
#Thingiverse = "xxxx"
|
#Thingiverse = "xxxx"
|
||||||
#Devto = "xxxx"
|
#Devto = "xxxx"
|
||||||
#Gitea = "xxxx"
|
#Gitea = "xxxx"
|
||||||
|
|
|
@ -246,6 +246,7 @@ dateFormatToUse = "2006-01-02"
|
||||||
#Googlescholar = "xxxx"
|
#Googlescholar = "xxxx"
|
||||||
#Researchgate = "xxxx"
|
#Researchgate = "xxxx"
|
||||||
#Mastodon = "xxxx"
|
#Mastodon = "xxxx"
|
||||||
|
#MastodonPrefix = "https://mastodon.technology/"
|
||||||
#Thingiverse = "xxxx"
|
#Thingiverse = "xxxx"
|
||||||
#Devto = "xxxx"
|
#Devto = "xxxx"
|
||||||
#Gitea = "xxxx"
|
#Gitea = "xxxx"
|
||||||
|
|
|
@ -269,7 +269,8 @@
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- with .Site.Params.Social.Mastodon}}
|
{{- with .Site.Params.Social.Mastodon}}
|
||||||
<a href="https://mastodon.social/{{ . }}" rel="me noopener noreffer" target="_blank">
|
{{ $MastodonPrefix := $.Site.Params.Social.MastodonPrefix | default "https://mastodon.social/" }}
|
||||||
|
<a href="{{ $MastodonPrefix | safeURL }}{{ . }}" rel="me noopener noreffer" target="_blank">
|
||||||
<i class="fab fa-mastodon fa-fw" title="Mastodon"></i>
|
<i class="fab fa-mastodon fa-fw" title="Mastodon"></i>
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue