diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 91fcfcc9..2ab50b13 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -248,6 +248,9 @@ dateFormatToUse = "2006-01-02" #Mastodon = "xxxx" #Thingiverse = "xxxx" #Devto = "xxxx" + #Gitea = "xxxx" + #XMPP = "xxxx" + #Matrix ="xxxx" # Social Share Links in post page [params.share] diff --git a/exampleSite/zh/config.toml b/exampleSite/zh/config.toml index 701b5027..9f12b820 100644 --- a/exampleSite/zh/config.toml +++ b/exampleSite/zh/config.toml @@ -248,6 +248,9 @@ dateFormatToUse = "2006-01-02" #Mastodon = "xxxx" #Thingiverse = "xxxx" #Devto = "xxxx" + #Gitea = "xxxx" + #XMPP = "xxxx" + #Matrix ="xxxx" # 文章页面的分享信息设置 [params.share] diff --git a/layouts/partials/home/social.html b/layouts/partials/home/social.html index 16cc50f5..712f3e91 100644 --- a/layouts/partials/home/social.html +++ b/layouts/partials/home/social.html @@ -1,3 +1,4 @@ + {{- with .Site.Params.Social.Github -}} @@ -283,6 +284,21 @@ {{- end -}} +{{- with .Site.Params.Social.Gitea}} + + + +{{- end -}} +{{- with .Site.Params.Social.XMPP}} + + + +{{- end -}} +{{- with .Site.Params.Social.Matrix}} + + + +{{- end -}} {{- with .Site.Params.Social.Custom}} {{- . | safeHTML -}} -{{- end -}} \ No newline at end of file +{{- end -}}