Skip to content

Commit 88c37d2

Browse files
committed
Update Open Graph and Twitter metadata to prepend base URL; adjust og_image dimensions in index.html.
1 parent ce22671 commit 88c37d2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

_includes/preamble.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<meta property="og:title" content="{{ page.og_title }}">
2323
{% endif %}
2424
{% if page.og_image %}
25-
<meta property="og:image" content="{{ page.og_image }}">
25+
<meta property="og:image" content="{{ page.og_image | prepend: site.baseurl }}">
2626
{% endif %}
2727
{% if page.og_image_type %}
2828
<meta property="og:image:type" content="{{ page.og_image_type }}">
@@ -49,7 +49,7 @@
4949
<meta name="twitter:description" content="{{ page.og_description }}">
5050
{% endif %}
5151
{% if page.og_image %}
52-
<meta name="twitter:image" content="{{ page.og_image }}">
52+
<meta name="twitter:image" content="{{ page.og_image | prepend: site.baseurl }}">
5353
{% endif %}
5454

5555
<script src="https://kit.fontawesome.com/18f0b9d11e.js" crossorigin="anonymous"></script>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
og_title: Moera
77
og_image: /assets/images/site-image.jpg
88
og_image_type: image/jpeg
9-
og_image_width: 2880
10-
og_image_height: 1694
9+
og_image_width: 1200
10+
og_image_height: 706
1111
og_description: The Best Decentralized Social Network
1212
og_site_name: Moera
1313
---

0 commit comments

Comments
 (0)