mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
use Param instead of Params to get the featured image
This commit is contained in:
parent
a1a99cf126
commit
22e02298a8
@ -19,7 +19,7 @@
|
||||
{{ $linkToCover := "" }}
|
||||
{{ $matches := "feature,cover" }}
|
||||
{{/* Use the value from front matter if present */}}
|
||||
{{ with .Params.featured_image }}
|
||||
{{ with .Param "featured_image" }}
|
||||
{{/* This is the default case, the image lives in the static directory.
|
||||
In which case we'll use the static dir */}}
|
||||
{{ $linkToCover = trim . "/" | absURL }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user