Skip to content

Commit

Permalink
Merge pull request lukeorth#116 from lukeorth/issue-115-og_image_fix
Browse files Browse the repository at this point in the history
Fixed og_image issues
  • Loading branch information
lukeorth authored Jul 11, 2023
2 parents e7036e6 + f7370fe commit 3af78e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/partials/head/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
{{ else }}
{{ $og_image_path = .Site.Params.brand_image }}
{{ end }}
{{ $og_image = resources.Get $og_image_path }}
{{ if $og_image_path }}
{{ $og_image = resources.Get $og_image_path }}
{{ end }}
{{ end }}
{{ with $og_image }}
{{ if or ( lt .Width 600 ) ( lt .Height 315 ) }}
Expand Down

0 comments on commit 3af78e1

Please sign in to comment.