Skip to content

Commit

Permalink
Change image to use github.url to allow testing of social media image…
Browse files Browse the repository at this point in the history
…s on forked branches.
  • Loading branch information
mgriffin-scottlogic committed Dec 19, 2024
1 parent 8a2ac11 commit 8b32996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
<meta property="og:title" content="{{ page.title | escape }}" />
<meta property="og:description" content="{{ page.summary | escape }}"/>
{% if page.image %}
{% assign thumbnailImage = page.image | prepend: '/' | replace : '//', '/' | prepend: site.canonical.url %}
{% assign thumbnailImage = page.image | prepend: '/' | replace : '//', '/' | prepend: site.github.url %}
{% else %}
{% assign thumbnailImage = site.canonical.url | append: '/assets/blog.png' %}
{% assign thumbnailImage = site.github.url | append: '/assets/blog.png' %}
{% endif %}
<meta property="og:image" content="{{ thumbnailImage }}" />
<meta property="og:type" content="article" />
Expand Down

0 comments on commit 8b32996

Please sign in to comment.