summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-11-10 20:28:41 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-11-10 22:14:58 +0100
commit09a36278fc6a187a996fbd05899d23f282dc1c90 (patch)
tree2f71ae8572f14fa786b1cd0092ae870fedb129ae
parent3354bbd585306d5d6b268f7e805bc600b71c526e (diff)
theme: elenq: add support for fediverse credit
-rw-r--r--publishconf.py1
-rw-r--r--themes/elenq/templates/base.html4
2 files changed, 5 insertions, 0 deletions
diff --git a/publishconf.py b/publishconf.py
index 0b3942f..a1fbc2f 100644
--- a/publishconf.py
+++ b/publishconf.py
@@ -27,3 +27,4 @@ TRANSLATION_FEED_ATOM = 'feeds/all-{lang}.atom.xml'
DELETE_OUTPUT_DIRECTORY = True
MASTODON_PROFILE = 'https://mastodon.social/@ekaitz_zarraga'
+MASTODON_HANDLE = '@ekaitz_zarraga@mastodon.social'
diff --git a/themes/elenq/templates/base.html b/themes/elenq/templates/base.html
index e5bba51..a319067 100644
--- a/themes/elenq/templates/base.html
+++ b/themes/elenq/templates/base.html
@@ -5,6 +5,10 @@
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
+ {% if MASTODON_HANDLE %}
+ <meta name="fediverse:creator" content="{{ MASTODON_HANDLE }}" />
+ {% endif %}
+
{% if FEED_ALL_ATOM %}
<link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
{% endif %}