From 2aa09b4b974dd3c27e73d97487945592c90d61e5 Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Sat, 16 Aug 2025 09:54:29 +1000 Subject: [PATCH] Added title-matches attribute --- layouts/shortcodes/postlist.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/shortcodes/postlist.html b/layouts/shortcodes/postlist.html index b26e6e1..bba2156 100644 --- a/layouts/shortcodes/postlist.html +++ b/layouts/shortcodes/postlist.html @@ -5,6 +5,9 @@ {{- $pgr = (where $pgr "Params.categories" "intersect" (slice .)) -}} {{- end -}} {{- end -}} +{{- if (.Get "title-matches") -}} + {{- $pgr = (where $pgr "Params.title" "like" (.Get "title-matches") -}} +{{- end -}} {{- if (ne (.Get "order") "") -}} {{- $order := split (.Get "order") " " -}}