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: d6da6302647471c03d68f0020488bff96e521b97
parent: 710eb8731eec7683e284f66495999fb630c3adc4
author: Chris Noxz <chris@noxz.tech>
date:   Sat, 4 Nov 2023 17:12:23 +0100
fix for cutoffs in long titles
M.gitignore1+
Mbuild4++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -8,3 +8,4 @@ noxz.tech/articles/tags
 logo.png
 */pub/sitemap.xml
 grohtml-*.png
+eqn-*.png
diff --git a/build b/build
@@ -319,7 +319,7 @@ prerender() {
 		printf '%s\n' "${line}"
 	done < "${base_path}"/.metadata
 
-	[ -n "$title" ] && printf '.HnS 0\n\\*[TITLE]\n.HnE\n\n'
+	[ -n "$title" ] && printf '\n.ll 10i\n\n.HnS 0\n\\*[TITLE]\n.HnE\n\n'
 	[ -n "$author" ] && printf '.P article-author\n\\*[AUTHOR]\n\n'
 	[ -n "$date" ] && printf '.P article-date\n\\*[DATE]\n\n'
 
@@ -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' | groff -Tutf8 | sed -n '1,1p')"
+	[ -f "${main_current}/.metadata" ] && SITE_TITLE="${SITE_TITLE}$(grep '\.ds TITLE' "${main_current}/.metadata" | sed 's/\.ds\ TITLE\s*/.ll 10i\n/g' | groff -Tutf8 | sed -n '1,1p')"
 	SITE_HTML="${SITE_WWW%.*}.html"
 
 	print_loading "Rendering ${main_current}"