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 --- assets/css/main.css | 15 ++++++++++++++- assets/fonts/.gitkeep | 0 layouts/post/single.html | 11 ++++++++++- layouts/shortcodes/projects.html | 12 ++++++++++++ 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 assets/fonts/.gitkeep create mode 100644 layouts/shortcodes/projects.html diff --git a/assets/css/main.css b/assets/css/main.css index c1aae11..47cb5f5 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -126,4 +126,17 @@ html[data-theme="dark"] #actions button { html[data-theme="light"] .icon, html[data-theme="light"] #actions button { color: #24333e; -} \ No newline at end of file +} + +.pills { + margin-top: 1em; +} + +.pill { + background-color: #237fc0; + display: inline-block; + border-radius: .25em; + line-height: 1em; + padding: .5em .5em; + color: white; +} diff --git a/assets/fonts/.gitkeep b/assets/fonts/.gitkeep new file mode 100644 index 0000000..e69de29 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