From 715cb005c964e58553c8b3624eb935c5ae30b3bf Mon Sep 17 00:00:00 2001 From: Dillon Date: Sat, 8 Feb 2020 19:56:42 +0800 Subject: [PATCH] feat(socal): add support for custom MastodonPrefix --- exampleSite/config.toml | 1 + exampleSite/zh/config.toml | 1 + layouts/partials/home/social.html | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2ab50b1..b8aba27 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -246,6 +246,7 @@ dateFormatToUse = "2006-01-02" #Googlescholar = "xxxx" #Researchgate = "xxxx" #Mastodon = "xxxx" + #MastodonPrefix = "https://mastodon.technology/" #Thingiverse = "xxxx" #Devto = "xxxx" #Gitea = "xxxx" diff --git a/exampleSite/zh/config.toml b/exampleSite/zh/config.toml index 9f12b82..cd822bd 100644 --- a/exampleSite/zh/config.toml +++ b/exampleSite/zh/config.toml @@ -246,6 +246,7 @@ dateFormatToUse = "2006-01-02" #Googlescholar = "xxxx" #Researchgate = "xxxx" #Mastodon = "xxxx" + #MastodonPrefix = "https://mastodon.technology/" #Thingiverse = "xxxx" #Devto = "xxxx" #Gitea = "xxxx" diff --git a/layouts/partials/home/social.html b/layouts/partials/home/social.html index aece59a..c22655e 100644 --- a/layouts/partials/home/social.html +++ b/layouts/partials/home/social.html @@ -269,7 +269,8 @@ {{- end -}} {{- with .Site.Params.Social.Mastodon}} - + {{ $MastodonPrefix := $.Site.Params.Social.MastodonPrefix | default "https://mastodon.social/" }} + {{- end -}}