From c806cead1452a61e8191876f5f6e44f722461984 Mon Sep 17 00:00:00 2001 From: Simon C Date: Fri, 14 Feb 2020 17:01:56 +0100 Subject: [PATCH] fix warning --- layouts/shortcodes/actu.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/actu.html b/layouts/shortcodes/actu.html index 3989ba1..840fbe8 100644 --- a/layouts/shortcodes/actu.html +++ b/layouts/shortcodes/actu.html @@ -2,7 +2,7 @@ {{ with .Site.GetPage "/actu" }} {{ $actu := . }} {{ range .Resources.ByType "page" }} - {{ if or (not .Params.draft) (eq .Hugo.Environment "development") }} + {{ if or (not .Params.draft) (eq hugo.Environment "development") }}
{{ $src := $actu.Resources.GetMatch (printf "*%s/%s*" (path.Base .File.Dir) (.Params.Image)) }}