From 3dfb87a4e3cd0cea4c891b667384acaa08fcc586 Mon Sep 17 00:00:00 2001 From: Worktop Date: Fri, 1 Mar 2024 16:02:34 -0500 Subject: [PATCH] started gal layout --- layouts/photos/list.html | 22 ++++++++++++++++++++++ layouts/photos/single.html | 24 ++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 layouts/photos/list.html create mode 100644 layouts/photos/single.html diff --git a/layouts/photos/list.html b/layouts/photos/list.html new file mode 100644 index 0000000..395ad66 --- /dev/null +++ b/layouts/photos/list.html @@ -0,0 +1,22 @@ +{{ partial "header.html" . }} + {{ partial "nav.html" . }} +
+ +

{{ .Title }}

+ +{{ .Content }} + +{{ range.Data.Pages }} +
+

+ {{ .Title }} +

+ +
+{{ end }} + +
+ +{{ partial "footer.html" . }} diff --git a/layouts/photos/single.html b/layouts/photos/single.html new file mode 100644 index 0000000..0371f50 --- /dev/null +++ b/layouts/photos/single.html @@ -0,0 +1,24 @@ +{{ partial "header.html" . }} + {{ partial "nav.html" . }} +
+ +

{{ .Title }}

+ +{{ .Content }} + +{{ $path := .Page.File.Path | strings.TrimSuffix (path.Ext .Page.File.Path) }} +{{ $images := where (resources.Match "photos/test1/*" ) "ResourceType" "eq" "image" }} + + + +
+ + + +{{ partial "footer.html" . }}