From 5e600385adfd0b7e20c5db8d8a84496044351d0e Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Tue, 15 Oct 2024 14:12:11 +0200 Subject: [PATCH 1/2] added a activitypub url if the plugin is configured --- templates/article.html | 2 ++ templates/author.html | 5 +++++ templates/tag.html | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/templates/article.html b/templates/article.html index e7ccd8e..d3bd083 100644 --- a/templates/article.html +++ b/templates/article.html @@ -5,6 +5,8 @@ +{% if PLUGINS and 'pelican.plugins.activitypub' in PLUGINS %}{% endif %} + {% if article.translations -%} {% for a in article.translations %} diff --git a/templates/author.html b/templates/author.html index 8de5722..40c0bee 100644 --- a/templates/author.html +++ b/templates/author.html @@ -1,3 +1,8 @@ {% extends "index.html" %} + +{% block meta %} +{% if PLUGINS and 'pelican.plugins.activitypub' in PLUGINS %}{% endif %} +{% endblock %} + {% block title %} – {{ _('Posts by %(name)s', name=author) }}:{% endblock %} {% set summarise = True %} diff --git a/templates/tag.html b/templates/tag.html index 2bc967a..57ad48d 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -1,3 +1,8 @@ {% extends "index.html" %} + +{% block meta %} +{% if PLUGINS and 'pelican.plugins.activitypub' in PLUGINS %}{% endif %} +{% endblock %} + {% block title %} – {{ _('Tag %(name)s', name=tag) }}{% endblock %} {% set summarise = True %} From a17ebec50f879a45c76aa27f3ca413d73c594431 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Wed, 16 Oct 2024 10:27:56 +0200 Subject: [PATCH 2/2] add all SOCIAL links in the metablock --- templates/base.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/base.html b/templates/base.html index 47090fd..4db8852 100644 --- a/templates/base.html +++ b/templates/base.html @@ -73,7 +73,7 @@ {% if USE_GOOGLE_FONTS != False %} {% endif %} - {% endif %} @@ -115,6 +115,10 @@ {% endif %} + {% for _, link in SOCIAL%} + + {% endfor %} + {% if not PLUGINS or 'seo' not in PLUGINS %} {% if REL_CANONICAL %} {% if page %} @@ -129,7 +133,7 @@ {% endif %} {% endif %} - {% endif %} + {% endif %} {% block meta %}