From b71cbb37efa6e1d78bc98dced790f9c924312108 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sat, 11 May 2024 11:59:48 +0200 Subject: [PATCH] ready? --- layouts/index.html | 3 +-- layouts/partials/photos.html | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/photos.html diff --git a/layouts/index.html b/layouts/index.html index 4d0445c..077bbc1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -84,7 +84,7 @@ {{ .Site.Params.photos.last | safeHTML }} - + {{ partial "photos.html" (dict "limit" 4) }} - Index {{ end }} diff --git a/layouts/partials/photos.html b/layouts/partials/photos.html new file mode 100644 index 0000000..c1b054e --- /dev/null +++ b/layouts/partials/photos.html @@ -0,0 +1,34 @@ +{{ $photos := (resources.Match "posts/*")}} {{/*resources.ByType "image" */}} +