feat: add a rel=me link to the Mastodon profile in the head of every page

Mastodon verifies a profile link when the target page links back to the
profile with rel=me. A link element in the head is invisible. The address is
mastodon_url in site.json.

Closes #3
This commit is contained in:
squid 2026-11-14 20:12:26 +01:00
commit b13aa17dff
2 changed files with 2 additions and 0 deletions

View file

@ -16,6 +16,7 @@
"license_url": "https://creativecommons.org/licenses/by-sa/4.0/",
"btc": "bc1qsj5qadrzlqmfwcru4fwuqvftg833te5f9mja2c",
"shop_url": "https://kmalloc.myspreadshop.it/",
"mastodon_url": "https://social.kmalloc.org/@squid",
"home_order": [
"git",
"social",

View file

@ -18,6 +18,7 @@
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="me" href="{{mastodon_url}}">
{{alt_links}}
<link rel="alternate" type="application/rss+xml" title="kmalloc.org: {{nav_news}}" href="{{url_news}}feed.xml">
<style>