diff --git a/layouts/_default/event.html b/layouts/_default/event.html index 8330a93..488bf3e 100644 --- a/layouts/_default/event.html +++ b/layouts/_default/event.html @@ -31,7 +31,7 @@

{{ .Title }}

{{ if .File.Dir }} - {{ if (fileExists (print "./static/events/images/" .Params.eventNumber)) }} + {{ if (fileExists (print "./assets/events/images/" .Params.eventNumber)) }}
تصاویر
@@ -65,10 +65,15 @@

{{ .Title }}

{{ if .File.Dir }} {{ $basename := (print "/events/poster/" .Params.eventNumber "/") }} - {{ if (fileExists (print "./static" $basename)) }} - {{ range (readDir (print "./static" $basename )) }} + {{ if (fileExists (print "./assets" $basename)) }} + {{ range (readDir (print "./assets" $basename )) }} - + {{ $image := (resources.Get (print ($basename | relURL) .Name)).Resize "300x" }} + + {{ with $image}} + + {{ end }} + {{ index (split .Name ".") 0 }} diff --git a/layouts/_default/gallery.html b/layouts/_default/gallery.html index 2523cbf..2b901d2 100644 --- a/layouts/_default/gallery.html +++ b/layouts/_default/gallery.html @@ -13,11 +13,16 @@

{{ .Title }}