diff --git a/layouts/_partials/opengraph.html b/layouts/_partials/opengraph.html index e60f942..140f248 100644 --- a/layouts/_partials/opengraph.html +++ b/layouts/_partials/opengraph.html @@ -22,20 +22,22 @@ {{- with $.Params.images -}} -{{- range first 6 . }} - -{{ end -}} + {{- range first 6 . }} + {{- with $.Resources.GetMatch . }} + + + {{- else }} + + + {{- end }} + {{- end }} {{- else -}} -{{- $featured := "" }} -{{- with $featured -}} - -{{- else -}} -{{- with $.Site.Params.images }} - -{{ end -}} -{{- end -}} + {{- with $.Site.Params.images }} + + {{- end }} {{- end -}} + {{- if .IsPage }} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}