Skip to content

Commit

Permalink
Use article image as social media preview if available.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Feb 19, 2024
1 parent e9f1b50 commit a9595fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/core.njk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta name="og:url"
content="https://tera-arise.io{{ page.url | url }}" />
<meta name="og:image"
content="https://tera-arise.io{{ preview or '/images/preview.webp' | url }}" />
content="https://tera-arise.io{{ image or '/images/preview.webp' | url }}" />
{%- if layout == 'news' %}
<meta name="og:published_time"
content="{{ page.date.toISOString() }}" />
Expand Down

0 comments on commit a9595fb

Please sign in to comment.