add fediverse creator meta tag

This commit is contained in:
madrilene 2024-10-14 09:29:32 +02:00
parent 52e9c360ee
commit 71a7ba08bf
2 changed files with 7 additions and 1 deletions

View file

@ -9,7 +9,8 @@ export const author = {
name: 'Lene Saile', // i.e. Lene Saile - page / blog author's name. Must be set.
avatar: '/icon-512x512.png', // path to the author's avatar. In this case just using a favicon.
email: 'hola@lenesaile.com', // i.e. hola@lenesaile.com - email of the author
website: 'https://www.lenesaile.com' // i.e. https.://www.lenesaile.com - the personal site of the author
website: 'https://www.lenesaile.com', // i.e. https.://www.lenesaile.com - the personal site of the author
fediverse: 'https://front-end.social/@lene' // used for highlighting journalism on the fediverse. Can be Mastodon, Flipboard, Threads, WordPress (with the ActivityPub plugin installed), PeerTube, Pixelfed, etc. https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/
};
export const creator = {
name: 'Lene Saile', // i.e. Lene Saile - creator's (developer) name.

View file

@ -31,6 +31,11 @@
<link rel="me" href="{{ personal.platforms.mastodon }}" />
{% endif %}
{% if meta.author.fediverse %}
<!-- fediverse creator tag -->
<meta name="fediverse:creator" content="{{ meta.author.fediverse }}" />
{% endif %}
<!-- Open Graph meta -->
<meta property="og:url" content="{{ meta.url }}{{ page.url }}" />
<meta property="og:type" content="website" />