Skip to content

Commit

Permalink
Remove extra slashes from image meta url (#77)
Browse files Browse the repository at this point in the history
- Update `default.html` to remove excess slashes
  • Loading branch information
jhcoll authored Oct 13, 2023
1 parent 56b19ad commit 62707ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<meta property="og:title" content="{{ page.title | escape }}" />
<meta property="og:description" content="{{ page.summary | escape }}"/>
{% if page.image %}
{% assign thumbnailImage = site.canonical.url | append: '/' | append: page.image %}
{% assign thumbnailImage = page.image | prepend: '/' | replace : '//', '/' | prepend: site.canonical.url %}
{% else %}
{% assign thumbnailImage = site.canonical.url | append: '/assets/blog.png' %}
{% endif %}
Expand Down

0 comments on commit 62707ac

Please sign in to comment.