Skip to content

Commit

Permalink
Add og_image override (#256)
Browse files Browse the repository at this point in the history
Add an og_image field to an update to override the default og preview
image.
  • Loading branch information
Krakaw authored Nov 12, 2024
1 parent 022bd9c commit 7c1cc3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@

<meta property="og:title" content="Tari" />
<meta property="og:description" content="The protocol for digital assets" />
<meta property="og:image" content="{{ site.url }}assets/img/meta-image.jpg" />
{% if page.og_image %}
<meta property="og:image" content="{{ site.url }}{{ page.og_image }}" />
{% else %}
<meta property="og:image" content="{{ site.url }}assets/img/meta-image.jpg" />
{% endif %}
<meta property="og:url" content="{{ site.url }}" />

<meta name="twitter:title" content="Tari" />
<meta name="twitter:description" content="The protocol for digital assets" />
<meta name="twitter:image" content="{{ site.url }}assets/img/meta-image.jpg" />
{% if page.og_image %}
<meta name="twitter:image" content="{{ site.url }}{{ page.og_image }}" />
{% else %}
<meta name="twitter:image" content="{{ site.url }}assets/img/meta-image.jpg" />
{% endif %}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@tari" />

Expand Down
1 change: 1 addition & 0 deletions _updates/2024-10-14-update-135.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ author: solivagant
thumbnail: update-background.jpg
title: The Tari Constant
class: subpage
og_image: "/assets/updates/img/update-background.jpg"
---

Welcome to the next Tari update. Tari Universe, much like its namesake, continues to expand at an astronomical rate, and we have you to thank for it. We’d like to share some stats regarding the known Universe:
Expand Down

0 comments on commit 7c1cc3d

Please sign in to comment.