Skip to content

Commit

Permalink
Fix path for og_image
Browse files Browse the repository at this point in the history
Replaced {{ permalink }} with a glide param 'absolute="true"' to fix relative path issue.
  • Loading branch information
philipboomy authored Oct 22, 2020
1 parent 7c5f215 commit ee146cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/views/snippets/_seo.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@
<meta property="og:description" content="{{ seo_description }}">
{{ /if }}
{{ if og_image }}
<meta property="og:image" content="{{ permalink }}{{ glide:og_image width='1200' height='600' fit='crop_focal' }}">
<meta property="og:image" content="{{ glide:og_image width='1200' height='600' fit='crop_focal' absolute="true" }}">
{{ elseif seo:og_image }}
<meta property="og:image" content="{{ permalink }}{{ glide:seo:og_image width='1200' height='600' fit='crop_focal' }}">
<meta property="og:image" content="{{ glide:seo:og_image width='1200' height='600' fit='crop_focal' absolute="true" }}">
{{ /if }}
{{# Trackers #}}
Expand Down Expand Up @@ -137,4 +137,4 @@
{{ if seo:use_fathom }}
<script src="https://cdn.usefathom.com/script.js" site="{{ seo:fathom }}" defer></script>
{{ /if }}
{{ /if }}

0 comments on commit ee146cf

Please sign in to comment.