Skip to content

Commit

Permalink
Merge pull request #287 from mgriffin-scottlogic/gh-pages
Browse files Browse the repository at this point in the history
Change image to use github.url to allow testing of social media images
  • Loading branch information
mgriffin-scottlogic authored Jan 6, 2025
2 parents 172d5c1 + 8b32996 commit 58b8e90
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 58b8e90

Please sign in to comment.