From d6989ca519a314968976c55ba01f6e3517ec3022 Mon Sep 17 00:00:00 2001 From: David John Gagne Date: Wed, 7 Aug 2024 10:04:05 -0500 Subject: [PATCH] Add projects --- themes/ncar/layouts/projects/list.html | 44 +++++++++++++++++++++ themes/ncar/layouts/projects/single.html | 49 ++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 themes/ncar/layouts/projects/list.html create mode 100644 themes/ncar/layouts/projects/single.html diff --git a/themes/ncar/layouts/projects/list.html b/themes/ncar/layouts/projects/list.html new file mode 100644 index 0000000..a78b791 --- /dev/null +++ b/themes/ncar/layouts/projects/list.html @@ -0,0 +1,44 @@ +{{ define "main" }} + +
+
+
+
+
+

+ {{ .Title | safeHTML }} +

+
+
+
+
+
+ +
+
+
+ {{ range (.Paginator 4).Pages }} + + {{ end }} +
+
+ {{ template "_internal/pagination.html" . }} +
+
+
+
+
+ +{{ end }} diff --git a/themes/ncar/layouts/projects/single.html b/themes/ncar/layouts/projects/single.html new file mode 100644 index 0000000..12afb5c --- /dev/null +++ b/themes/ncar/layouts/projects/single.html @@ -0,0 +1,49 @@ +{{ define "main" }} + +
+
+
+
+
+

+ {{ .Title }} +

+
+ {{ .Content }} +
+
+ {{ range .Params.project_images }} + project image + {{ end }} +
+ {{ if or .PrevInSection .NextInSection }} +
+ {{ if .PrevInSection }} + + {{ end }} + {{ if .NextInSection }} + + {{ end }} +
+ {{ end }} +
+
+
+
+
+ +{{ end }}