aboutsummaryrefslogtreecommitdiffstats
path: root/bin/ssg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ssg')
-rwxr-xr-xbin/ssg4
1 files changed, 3 insertions, 1 deletions
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
remember that computers suck.