noxz-sites

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

commit: 710eb8731eec7683e284f66495999fb630c3adc4
parent: 0d8f280a8e1d14647aa558095ada8ee677510ba0
author: Chris Noxz <chris@noxz.tech>
date:   Mon, 23 Oct 2023 19:14:02 +0200
fix title groff format
Mbuild2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build b/build
@@ -507,7 +507,7 @@ render_main() {
 	main_current=$(dirname "${main_current}/*")
 
 	[ -f "${main_current}/index.www" ] && SITE_WWW="${main_current}/index.www" || return
-	[ -f "${main_current}/.metadata" ] && SITE_TITLE="${SITE_TITLE}$(grep '\.ds TITLE' "${main_current}/.metadata" | sed 's/\.ds\ TITLE\s*//g')"
+	[ -f "${main_current}/.metadata" ] && SITE_TITLE="${SITE_TITLE}$(grep '\.ds TITLE' "${main_current}/.metadata" | sed 's/\.ds\ TITLE\s*//g' | groff -Tutf8 | sed -n '1,1p')"
 	SITE_HTML="${SITE_WWW%.*}.html"
 
 	print_loading "Rendering ${main_current}"