diff --git a/config.toml b/config.toml index 7dd3b9def..8c588360a 100644 --- a/config.toml +++ b/config.toml @@ -81,6 +81,8 @@ # license info (HTML format is supported) # 许可协议信息 (支持 HTML 格式) license= "" + # Inject invible Mastodon rel="me" link + mastodonRelme = false # Section (all posts) page config # Section (所有文章) 页面配置 diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 504cb9e90..041fdd1ae 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -167,6 +167,8 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] # license info (HTML format is supported) # 许可协议信息 (支持 HTML 格式) license= 'CC BY-NC 4.0' + # Inject invible Mastodon rel="me" link + mastodonRelme = false # Section (all posts) page config # Section (所有文章) 页面配置 diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f21a1973c..26446d89f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -46,6 +46,12 @@ {{ . | safeHTML }} {{- end -}} + + {{- if ne .Site.Params.footer.mastodonRelme false -}} +
+ {{- end -}} {{- end -}}