Merge pull request #57 from dillonzq/feature/custom_mastodon_url
feat(socal): add support for custom MastodonPrefix
This commit is contained in:
@@ -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 -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user