From f062f5015dd5e9473f0b5773df66e4c53569f911 Mon Sep 17 00:00:00 2001 From: iGoX Date: Wed, 16 Aug 2023 20:08:39 +0200 Subject: [PATCH 1/6] Update to inject rel="me" Mastodon link into footer --- config.toml | 2 ++ layouts/partials/footer.html | 6 ++++++ 2 files changed, 8 insertions(+) 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/layouts/partials/footer.html b/layouts/partials/footer.html index f21a1973c..cf85038eb 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -45,6 +45,12 @@  | 
{{ . | safeHTML }} {{- end -}} + + {{- if ne .Site.Params.footer.mastodonRelme false -}} + + {{- end -}} From 35e83e0f32c28045abb5332c0d30a247d41f7e1f Mon Sep 17 00:00:00 2001 From: iGoX Date: Wed, 16 Aug 2023 20:15:44 +0200 Subject: [PATCH 2/6] Fix Mastodon rel="me" link injection in footer --- layouts/partials/footer.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index cf85038eb..80274bd38 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -45,13 +45,13 @@  | 
{{ . | safeHTML }} {{- end -}} - - {{- if ne .Site.Params.footer.mastodonRelme false -}} + + + {{- if ne .Site.Params.footer.mastodonRelme false -}} {{- end -}} - {{- end -}} From f195c9aea71bc92009f28b91e82ab665ba50f4af Mon Sep 17 00:00:00 2001 From: iGoX Date: Wed, 16 Aug 2023 21:38:56 +0200 Subject: [PATCH 3/6] Minor change in footer layout --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 80274bd38..7cc5d7c16 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -49,7 +49,7 @@ {{- if ne .Site.Params.footer.mastodonRelme false -}} {{- end -}} From d7033312da0ccd8cbb26b44be99d98010c9e59e5 Mon Sep 17 00:00:00 2001 From: iGoX Date: Wed, 16 Aug 2023 21:54:54 +0200 Subject: [PATCH 4/6] Fix minor typo --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 7cc5d7c16..a88c86670 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -49,7 +49,7 @@ {{- if ne .Site.Params.footer.mastodonRelme false -}} {{- end -}} From 4a80b111d2d12a22cc90fe668fbaca75951d00d0 Mon Sep 17 00:00:00 2001 From: iGoX Date: Wed, 16 Aug 2023 22:02:11 +0200 Subject: [PATCH 5/6] revert back to avoid double injection --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a88c86670..26446d89f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -49,7 +49,7 @@ {{- if ne .Site.Params.footer.mastodonRelme false -}} {{- end -}} From aa2ec2c15f055a6019710b129ed4d95bc4c10c0d Mon Sep 17 00:00:00 2001 From: iGoX Date: Wed, 23 Aug 2023 12:15:00 +0200 Subject: [PATCH 6/6] Change exampleSite config --- exampleSite/config.toml | 2 ++ 1 file changed, 2 insertions(+) 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 (所有文章) 页面配置