diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html index c245e5bd..ca745ee1 100644 --- a/layouts/partials/templates/opengraph.html +++ b/layouts/partials/templates/opengraph.html @@ -33,9 +33,17 @@ {{- end }} -{{- with partial "_funcs/get-page-images" . }} - {{- range . | first 6 }} - +{{- if .Params.cover.image -}} + {{- if (ne .Params.cover.relative true) }} + + {{- else}} + + {{- end}} +{{- else }} + {{- with partial "_funcs/get-page-images" . }} + {{- range . | first 6 }} + + {{- end }} {{- end }} {{- end }}