forked from TrueCloudLab/distribution
e2ae76f1f2
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
12 lines
376 B
HTML
12 lines
376 B
HTML
{{ $img := "" }}
|
|
|
|
{{ with $source := ($.Resources.ByType "image").GetMatch "{*feature*,*cover*,*thumbnail*}" }}
|
|
{{ $featured := .Fill (printf "1200x630 %s" (default "Smart" .Params.anchor)) }}
|
|
{{ $img = $featured.Permalink }}
|
|
{{ else }}
|
|
{{ with default $.Site.Params.images $.Params.images }}
|
|
{{ $img = index . 0 | absURL }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ return $img }}
|