From 56295d02baa714e0423be5a78eb3febf39382b73 Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Wed, 25 Jun 2025 13:23:29 +0200 Subject: [PATCH] Initial commit --- layouts/shortcodes/postlist.html | 21 +++++++++++++++++++++ static/postlist.css | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 layouts/shortcodes/postlist.html create mode 100644 static/postlist.css diff --git a/layouts/shortcodes/postlist.html b/layouts/shortcodes/postlist.html new file mode 100644 index 0000000..9a8786d --- /dev/null +++ b/layouts/shortcodes/postlist.html @@ -0,0 +1,21 @@ +{{- $pgr := where .Site.RegularPages "Section" "ne" "" -}} +{{- $pgr = where $pgr "Section" "not in" (slice "replies") -}} +{{- if (.Get "categories") -}} + {{- range (split (.Get "categories") ",") -}} + {{- $pgr = (where $pgr "Params.categories" "intersect" (slice .)) -}} + {{- end -}} +{{- end -}} +{{- if (eq (.Get "order") "link-title" ) -}} + {{- $pgr = $pgr.ByLinkTitle -}} +{{- end -}} + \ No newline at end of file diff --git a/static/postlist.css b/static/postlist.css new file mode 100644 index 0000000..4fc8a7b --- /dev/null +++ b/static/postlist.css @@ -0,0 +1,4 @@ +ul.postlist { + list-style: none; + padding-inline-start: 0; +} \ No newline at end of file