Welcome to mirror list, hosted at ThFree Co, Russian Federation.

get_featured.html « partials « layouts - github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f9fd419c4fcdbe8b8eab5822e2435b034fba25d1 (plain)
1
2
3
4
5
6
7
{{ $video := partial "get_video" (dict "context" . "url" .Params.featuredVideo "keyword" "*featured*") }}
{{ $image := partial "get_image.html" (dict "context" . "url" .Params.featuredImage "keyword" "*featured*") }}
{{ if $video }}
{{ $video }}
{{ else if $image }}
<img src="{{ $image }}" class="w-full" alt="Featured Image">
{{ end }}