mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
use .Site.Params
This commit is contained in:
parent
22e02298a8
commit
a0ddbef323
@ -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 .Param "featured_image" }}
|
{{ with .Site.Params.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