fix warning
This commit is contained in:
parent
e5bf745a9f
commit
c806cead14
|
@ -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)) }}
|
||||
|
|
Loading…
Reference in New Issue