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)) }}