summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-29 12:38:47 +0100
committerubq323 <ubq323@ubq323.website>2024-04-29 12:38:47 +0100
commit92bad116a5fa6ef28dc0c86381a5486e3654bd99 (patch)
tree827414757ffe057f2cc9abe16175ba66d71f81a4 /build.sh
parent351a57a5464f5f150317b25a76d64348d953a760 (diff)
gardenHEADtrunk
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