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

Troy Lindsay
12.16.2022 36c029abb9551e247e83789d6b3a02c2299a14e1
Fix support for site config featured image (#489) (#490)

* Unintentionally caused by #474
1 files modified
7 ■■■■■ changed files
layouts/partials/func/GetFeaturedImage.html 7 ●●●●● patch | view | raw | blame | history
layouts/partials/func/GetFeaturedImage.html
@@ -34,6 +34,13 @@
  {{ end }}
{{ end }}
{{ if not $linkToCover }}
  {{/* Use the value from the site config parameter if present */}}
  {{ with .Site.Params.featured_image }}
    {{ $linkToCover = . }}
  {{ end }}
{{ end }}
{{/* return either a permalink, or an empty string. Note that partials can only have a single
return statement, so this needs to be at the end of the partial (and not in the if block) */}}
{{ return $linkToCover }}