github.com/square/finch@v0.0.0-20240412205204-6530c03e2b96/docs/themes/hugo-geekdoc/layouts/partials/utils/featured.html (about)

     1  {{ $img := "" }}
     2  
     3  {{ with $source := ($.Resources.ByType "image").GetMatch "{*feature*,*cover*,*thumbnail*}" }}
     4    {{ $featured := .Fill (printf "1200x630 %s" (default "Smart" .Params.anchor)) }}
     5    {{ $img = $featured.Permalink }}
     6  {{ else }}
     7    {{ with default $.Site.Params.images $.Params.images }}
     8      {{ $img = index . 0 | absURL }}
     9    {{ end }}
    10  {{ end }}
    11  
    12  {{ return $img }}