From cf6c17546bc40d41c169279ad7b8f60bf0888ab3 Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Fri, 13 Oct 2023 21:26:24 -0400 Subject: new templates, and refinements --- layouts/post/single.html | 11 ++++++++++- layouts/shortcodes/projects.html | 12 ++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 layouts/shortcodes/projects.html (limited to 'layouts') diff --git a/layouts/post/single.html b/layouts/post/single.html index 25bfc23..2c4c23e 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -2,10 +2,19 @@ {{ if not .Params.dontDisclaim }} {{ partial "disclaimer" . }} {{ end }} + {{ with .GetTerms "categories" }} + {{ (index . 0).RelPermalink }} + {{ end }}

{{ .Title }}

{{ .Date | time.Format ":date_full" }}
-
{{ .Lastmod | time.Format ":date_full" }}
+ {{ with .Params.categories }} +
+ {{ range $value := . }} + {{ $value }} + {{ end }} +
+ {{ end }}
{{- .Content -}} diff --git a/layouts/shortcodes/projects.html b/layouts/shortcodes/projects.html new file mode 100644 index 0000000..b9cf8b5 --- /dev/null +++ b/layouts/shortcodes/projects.html @@ -0,0 +1,12 @@ +{{ $projects := where .Site.RegularPages "Params.categories" "intersect" (slice "projects") }} + + \ No newline at end of file -- cgit v1.1