diff --git a/layouts/shortcodes/foldergallery.html b/layouts/shortcodes/foldergallery.html
index bc488957..8ff50400 100644
--- a/layouts/shortcodes/foldergallery.html
+++ b/layouts/shortcodes/foldergallery.html
@@ -28,19 +28,16 @@
- {{ $path := print "content/gallery/" (.Get "src") }}
- {{ $url := print (.Get "src") }}
- {{ range (readDir $path) }}
- {{/* don't try to display .DS_Store or directories */}}
- {{ if and (ne .Name ".DS_Store") (not .IsDir) }}
- {{ $src := print "/it/gallery" "/" $url "/" .Name }}
- {{/*
- troubleshoot the $src variable as needed
-
- */}}
-
-
-
- {{ end }}
- {{ end }}
+ {{- range (.Page.Resources.ByType "image") -}}
+ {{- $big := .Resize "x1600 webp q85" -}}
+ {{- $mid := .Resize "x1080 webp q80" -}}
+ {{- $sml := .Resize "x480 webp q70" -}}
+ {{- $thumb := .Resize "x200 webp q50" -}}
+
+
+
+ {{- end -}}
\ No newline at end of file