Update Open Graph logic and remove unused OGP image
All checks were successful
/ CI (push) Successful in 13s
/ CD (push) Successful in 7s

Removed the fallback Open Graph image logic from the header and deleted the unused `ogp.png` file. Also removed the `image` field from `_config.yml` as it is no longer necessary. Simplifies configuration and ensures only page-specific images are used.
This commit is contained in:
Lars 2024-12-25 14:57:15 +01:00
parent 4fc1da1842
commit cd7ed8a775
4 changed files with 0 additions and 3 deletions

View file

@ -3,7 +3,6 @@ description: >-
Some dude in the internet. Some dude in the internet.
lang: en-US lang: en-US
timezone: Europe/Berlin timezone: Europe/Berlin
image: assets/img/ogp.png
mode: dark # default theme "dark" | "light" mode: dark # default theme "dark" | "light"
# Profile settings # Profile settings

View file

@ -96,8 +96,6 @@
/> />
{% if page.image %} {% if page.image %}
<meta property="og:image" content="{{ page.image | absolute_url }}" /> <meta property="og:image" content="{{ page.image | absolute_url }}" />
{% else %}
<meta property="og:image" content="{{ site.image | absolute_url }}" />
{% endif %} {% endif %}
<meta property="og:image:width" content="640" /> <meta property="og:image:width" content="640" />
<meta property="og:image:height" content="640" /> <meta property="og:image:height" content="640" />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB