diff --git a/layouts/_partials/seo-tags/opengraph.html b/layouts/_partials/seo-tags/opengraph.html index 54da2cd..a719ecc 100644 --- a/layouts/_partials/seo-tags/opengraph.html +++ b/layouts/_partials/seo-tags/opengraph.html @@ -3,16 +3,6 @@ -{{ $images := $.Resources.ByType "image" }} -{{ $featured := $images.GetMatch "*feature*" }} -{{ if not $featured }} - {{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }} -{{ end }} - -{{ with $featured }} - -{{ end }} - {{ with .Section }} {{ end }} @@ -37,12 +27,38 @@ {{ end }} +{{ $images := $.Resources.ByType "image" }} +{{ $featured := $images.GetMatch "*feature*" }} +{{ if not $featured }} + {{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }} +{{ end }} + +{{ with $featured }} + + {{ with .Params.alt }} + + {{ end }} + {{ with .MediaType }} + + {{ end }} + {{ with .Width }} + + {{ end }} + {{ with .Height }} + + {{ end }} +{{ end }} + {{ $videos := $.Resources.ByType "video" }} {{ $featured_video := $videos.GetMatch "*feature*" }} {{ if not $featured_video }} {{ $featured_video = $videos.GetMatch "{*cover*,*thumbnail*}" }} {{ end }} + {{ with $featured_video }} + {{ with .MediaType }} + + {{ end }} {{ end }}