mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Regis Philibert
10.36.2022 470ea40982f5036554819253c3ac6ed4a34193f4
layouts/partials/func/GetFeaturedImage.html
@@ -20,7 +20,9 @@
{{ $matches := "feature,cover" }}
{{/* Use the value from front matter if present */}}
{{ with .Params.featured_image }}
   {{ $linkToCover = . }}
  {{/* This is the default case, the image lives in the static directory.
    In which case we'll use the static dir */}}
  {{ $linkToCover = trim . "/" | absURL }}
  {{/* If we find a Page Resource matching the exact value, we use it instead. */}}
  {{ with $.Resources.GetMatch . }}
    {{ $linkToCover = .RelPermalink }}