Merge pull request 'OpenGraph compatibility' (#8) from pixel-pride into master
All checks were successful
/ build (push) Successful in 34s
/ reuse-compliance (push) Successful in 11s

Reviewed-on: #8
This commit is contained in:
NcamGnrvngu 2025-09-17 22:05:54 +02:00
commit 00cfa6c4f5
2 changed files with 18 additions and 1 deletions

View file

@ -1,6 +1,8 @@
+++
title = "Pixel Art Prideflags"
date = "2025-09-15"
[extra]
image = "sticker-box.png"
+++
As you can maybe guess from my magnificent profile picture I really like pride flags. I also really like pixel art. So why not throw these two together, gently stir and create some beautiful images in different resolutions (12, 30 and 42 pixels high) for you and me to use and enjoy.

View file

@ -15,6 +15,21 @@
</div>
{% if config.extra.mastodon_user %}
<meta name="fediverse:creator" content="{{ config.extra.mastodon_user}}">
<meta name="fediverse:creator" content="{{ config.extra.mastodon_user}}"/>
{% endif %}
<meta name="og:title" content="{{ page.title }}"/>
<meta name="og:type" content="article"/>
<meta name="article:published_time" content="{{ page.date }}"/>
{% if page.updated %}
<meta name="article:modified_time" content="{{ page.updated }}"/>
{% endif %}
{% if page.authors[0] %}
<meta name="og:article:author" content="{{ page.authors[0] }}"/>
{% elif config.author %}
<meta name="og:article:author" content="{{ config.author }}"/>
{% endif %}
<meta name="og:url" content="{{ page.permalink }}"/>
{% if page.extra.image %}
<meta name="og:image" content="{{ page.permalink }}{{ page.extra.image }}"/>
{% endif %}
{% endblock content %}