Browse Source

making the OG image pull from relative path, so it works on previews, too.

pull/688/head
benny Vasquez 5 months ago
parent
commit
be2f5e80b2
  1. 2
      layouts/partials/common/opengraph.html

2
layouts/partials/common/opengraph.html

@ -4,7 +4,7 @@
<meta property="og:url" content="{{ .Permalink }}" />
{{- with $.Params.images -}}
{{- range first 6 . }}<meta property="og:image" content="{{ . | absURL }}" />{{ end -}}
{{- range first 6 . }}<meta property="og:image" content="{{ . | relURL }}" />{{ end -}}
{{- else -}}
{{- $images := $.Resources.ByType "image" -}}
{{- $featured := $images.GetMatch "*feature*" -}}

Loading…
Cancel
Save