From a0ddbef32317852f1881cd4f9ff3f9bcb6559b97 Mon Sep 17 00:00:00 2001 From: Fredrik Mile Date: Mon, 13 Feb 2023 09:52:47 +0100 Subject: [PATCH] use .Site.Params --- layouts/partials/func/GetFeaturedImage.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/func/GetFeaturedImage.html b/layouts/partials/func/GetFeaturedImage.html index f613f99..8a9b653 100644 --- a/layouts/partials/func/GetFeaturedImage.html +++ b/layouts/partials/func/GetFeaturedImage.html @@ -19,7 +19,7 @@ {{ $linkToCover := "" }} {{ $matches := "feature,cover" }} {{/* 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. In which case we'll use the static dir */}} {{ $linkToCover = trim . "/" | absURL }}