From 82edda96ef68a4e4d0695fe1e056b609fdd83074 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Thu, 19 Mar 2026 16:57:18 -0400 Subject: hello, world --- compile.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 compile.sh (limited to 'compile.sh') diff --git a/compile.sh b/compile.sh new file mode 100755 index 0000000..58c2968 --- /dev/null +++ b/compile.sh @@ -0,0 +1,15 @@ +#! /bin/bash + +md=`find . -name "*.md"` + +for file in $md; do + # build the page into an intermediate file, so when I reload in the browser, + # it's not a 50/50 whether the page is empty or not. + cat header.html > build.html + pandoc -f markdown -t html $file | iconv -f UTF-8 -t ASCII//TRANSLIT >> build.html + cat footer.html >> build.html + cp build.html `echo $file | sed s/\.md$/.html/` +done + +rm build.html + -- cgit v1.3-2-g0d8e