fix warning

This commit is contained in:
Simon 2020-02-14 17:01:56 +01:00
parent e5bf745a9f
commit c806cead14
1 changed files with 1 additions and 1 deletions

View File

@ -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") }}
<article class="card">
<div class="card-image">
{{ $src := $actu.Resources.GetMatch (printf "*%s/%s*" (path.Base .File.Dir) (.Params.Image)) }}