From 362b71c855c434f246e4bb366cb26d02a9832c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 20 Sep 2021 09:46:44 +0200 Subject: bin: Add template support and empty template --- bin/ssg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/ssg') diff --git a/bin/ssg b/bin/ssg index f70a3f9..28eeea0 100755 --- a/bin/ssg +++ b/bin/ssg @@ -91,7 +91,9 @@ main() { fi # Concatenate temporary files to final page - m4 templates/default.html > "${TMP_FILE}" + template=$(_get_value "${file}" "template") + template="${template:-default}" + m4 "templates/${template}.html" > "${TMP_FILE}" install -D "${TMP_FILE}" "${out_path}" done -- cgit v1.2.3