mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-09 01:32:45 +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 := "" }}
|
{{ $linkToCover := "" }}
|
||||||
{{ $matches := "feature,cover" }}
|
{{ $matches := "feature,cover" }}
|
||||||
{{/* Use the value from front matter if present */}}
|
{{/* 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.
|
{{/* This is the default case, the image lives in the static directory.
|
||||||
In which case we'll use the static dir */}}
|
In which case we'll use the static dir */}}
|
||||||
{{ $linkToCover = trim . "/" | absURL }}
|
{{ $linkToCover = trim . "/" | absURL }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user