diff --git a/layouts/partials/get_featured.html b/layouts/partials/get_featured.html index f9fd419c..aa99e78f 100644 --- a/layouts/partials/get_featured.html +++ b/layouts/partials/get_featured.html @@ -1,7 +1,9 @@ {{ $video := partial "get_video" (dict "context" . "url" .Params.featuredVideo "keyword" "*featured*") }} {{ $image := partial "get_image.html" (dict "context" . "url" .Params.featuredImage "keyword" "*featured*") }} +{{ $featured := ""}} {{ if $video }} -{{ $video }} +{{ $featured = $video }} {{ else if $image }} - -{{ end }} \ No newline at end of file +{{ $featured = print "" | safeHTML }} +{{ end }} +{{ return $featured }} \ No newline at end of file diff --git a/layouts/partials/horizontal_summary.html b/layouts/partials/horizontal_summary.html index cdd4eaf9..d95cb526 100644 --- a/layouts/partials/horizontal_summary.html +++ b/layouts/partials/horizontal_summary.html @@ -1,5 +1,6 @@