summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index c2c57f0..5f492f2 100755
--- a/build.sh
+++ b/build.sh
@@ -21,6 +21,10 @@ bp() {
}
# build page with extensions automatically
bpn() { bp ${1}.lua ${1}.html; }
+
+# build page into subdir (xyz.lua becomes /xyz/)
+bpnd() { md "$1"; bp ${1}.lua ${1}/index.html; }
+
# copy file (or dir)
cf() {
echo "${src}/$1 -> ${dst}/$1"
@@ -38,6 +42,8 @@ cf me.png
md questions
bpn questions/questions
+bpnd garden
+
# md blog
# bp blogindex.lua blog/index.html