diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index 4a947d2..6020b97 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -27,15 +27,15 @@ {{- with .Params.locale }}{{ end }} {{- with .Site.Params.title }}{{ end }} +{{- with .Params.videos -}} +{{- range first 6 . }}{{ end -}} +{{- else -}} {{- $videos := $.Resources.ByType "video" -}} {{- $featured_video := $videos.GetMatch "*feature*" -}} {{- if not $featured_video }}{{ $featured_video = $videos.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- with $featured_video -}} -{{- else -}} -{{- with .Params.videos }}{{- range . }} - -{{ end }}{{ end }} +{{- end -}} {{- end -}} {{- /* If it is part of a series, link to related articles */}}