noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
Log | Files | README | LICENSE

commit: 41263959de534e0bd97a311fb1e3fc8f9a267328
parent: f6c89f7b57af7bf86148c4c7dd4426b4ee0dd419
author: Chris Noxz <chris@noxz.tech>
date:   Fri, 14 Oct 2022 10:20:19 +0200
add tag list to articles page
Mbuild4+++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/build b/build
@@ -233,7 +233,9 @@ render_main_menu_extra() {
 }
 
 render_articles() {
-	[ -z "$2" ] && printf 'You can also filter by\n.URL tags tags .\n\n'
+	# copy tag list from tags page
+	[ -z "$2" ] && sed -e 's,\.ARTTAG "\([^"]*\)",.ARTTAG "tags/\1",g'      \
+		"${1}"/articles/tags/index.www
 	echo .DIVS articles
 	[ -n "$2" ] && printf '.ULS\n'
 	find "$1"/articles -name .metadata | while read -r article