diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-09-20 09:46:44 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-09-20 09:46:44 +0200 |
commit | 362b71c855c434f246e4bb366cb26d02a9832c75 (patch) | |
tree | 3bee15b84f0620544ccbf0e2837d446c9743f04a /bin/ssg | |
parent | 459a48f299c188bbfc024fe14657e3d4802a0b6b (diff) | |
download | rgoncalves.se-362b71c855c434f246e4bb366cb26d02a9832c75.tar.gz |
bin: Add template support and empty template
Diffstat (limited to 'bin/ssg')
-rwxr-xr-x | bin/ssg | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |