Skip to content

Commit

Permalink
layout: opengraph: use relative path of OGP image of posts
Browse files Browse the repository at this point in the history
Signed-off-by: smallkirby <ssmallkirby@gmail.com>
  • Loading branch information
smallkirby committed Aug 20, 2023
1 parent b169d2e commit d7b63b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/head/seo/opengraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<meta property="og:image:alt" content="{{ . }}" />
{{ end }}
{{ else if $.Params.images }}
<meta name="og:image" content="{{ index $.Params.images 0 | absURL }}"/>
<meta name="og:image" content="{{ path.Join $.Permalink (index $.Params.images 0) | absURL }}"/>
{{ else if $.Site.Params.images }}
<meta name="og:image" content="{{ index $.Site.Params.images 0 | absURL }}"/>
{{ end }}
Expand Down

0 comments on commit d7b63b1

Please sign in to comment.