From b1ed0f1c0f359df5e2f3cdbd18af32269e5c0d17 Mon Sep 17 00:00:00 2001 From: Julien Capul Date: Sun, 21 Apr 2019 15:52:28 +0200 Subject: [PATCH] Unquoting true value for Params.featured I had to unquote the true value in the where expression on Params.featured to make it work. My Hugo version is: Hugo Static Site Generator v0.54.0/extended darwin/amd64 BuildDate: unknown --- layouts/partials/portfolio/content.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/portfolio/content.html b/layouts/partials/portfolio/content.html index 1c82f06..fa6e286 100644 --- a/layouts/partials/portfolio/content.html +++ b/layouts/partials/portfolio/content.html @@ -1,6 +1,6 @@ {{ .Title | default "Projects" }}
- {{ range first 1 (where .Data.Pages "Params.featured" "==" "true") }} + {{ range first 1 (where .Data.Pages "Params.featured" "==" true) }}