From cb73676a107101c311c6ec509d077e0b1e6cdf2e Mon Sep 17 00:00:00 2001 From: Scott Evans Date: Wed, 9 Oct 2024 10:52:42 +0200 Subject: [PATCH 1/3] Add support for fediverse:creator https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/ --- theme/_layouts/base.njk | 1 + 1 file changed, 1 insertion(+) diff --git a/theme/_layouts/base.njk b/theme/_layouts/base.njk index 0536b6c..018e21d 100644 --- a/theme/_layouts/base.njk +++ b/theme/_layouts/base.njk @@ -50,6 +50,7 @@ {% if settings.isStaging or noIndex %}{% endif %} {% if settings.author.fediverseProfile %}{% endif %} + {% if settings.author.fediverseProfile %}{% endif %} From 6b5e4b3682b8d69d11ce3002a0a7f26ce5328d8a Mon Sep 17 00:00:00 2001 From: Scott Evans Date: Wed, 9 Oct 2024 11:18:02 +0200 Subject: [PATCH 2/3] Add new setting --- content/_data/settings.json | 3 ++- theme/_layouts/base.njk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/content/_data/settings.json b/content/_data/settings.json index 2c4c53d..05a0aef 100644 --- a/content/_data/settings.json +++ b/content/_data/settings.json @@ -7,7 +7,8 @@ "email": "noreply@example.com", "url": "https://scott.ee", "location": "Stockholm, Sweden", - "fediverseProfile": "https://toot.scott.ee/@scott" + "fediverseProfile": "https://toot.scott.ee/@scott", + "fediverseUsername": "@scott@toot.scott.ee" }, "meta": { "separator": "•", diff --git a/theme/_layouts/base.njk b/theme/_layouts/base.njk index 018e21d..33c0cca 100644 --- a/theme/_layouts/base.njk +++ b/theme/_layouts/base.njk @@ -50,7 +50,7 @@ {% if settings.isStaging or noIndex %}{% endif %} {% if settings.author.fediverseProfile %}{% endif %} - {% if settings.author.fediverseProfile %}{% endif %} + {% if settings.author.fediverseUsername %}{% endif %} From d061012e56dee6a58d365a7a57ba0cd0348191d2 Mon Sep 17 00:00:00 2001 From: Scott Evans Date: Wed, 9 Oct 2024 11:56:20 +0200 Subject: [PATCH 3/3] Tighten header tags --- theme/_layouts/base.njk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/theme/_layouts/base.njk b/theme/_layouts/base.njk index 33c0cca..5b177de 100644 --- a/theme/_layouts/base.njk +++ b/theme/_layouts/base.njk @@ -27,7 +27,7 @@ - + @@ -48,9 +48,9 @@ - {% if settings.isStaging or noIndex %}{% endif %} + {% if settings.isStaging or noIndex %}{% endif %} {% if settings.author.fediverseProfile %}{% endif %} - {% if settings.author.fediverseUsername %}{% endif %} + {% if settings.author.fediverseUsername %}{% endif %}