Summary Files Commits Branches @commit @diff @stats
path: root / generate.sh
diff options
context:
space:
mode:
1 files changed, 3 insertions, 2 deletions
-rwxr-xr-xgenerate.sh5
diff --git a/generate.sh b/generate.sh
index 10ead82..6d92ce0 100755
--- a/generate.sh
+++ b/generate.sh
@@ -2,6 +2,7 @@
: ${SRC:=$PWD/src}
: ${GEN_DIR:=./website}
+: ${URL:=https://syndamia.com}
: ${HEADER:=$PWD/meta/header.html}
: ${FOOTER:=$PWD/meta/footer.html}
: ${META:=$PWD/meta/meta.tsv}
@@ -29,7 +30,7 @@ EOF
cp -a "$SRC/." "$GEN_DIR"
AWK="mawk"
- export HEADER FOOTER META GEN_DIR AWK
+ export HEADER FOOTER META GEN_DIR AWK URL
/usr/bin/env dash ./dunbar/dunbar_awk/dunbar.sh html \
-i \
@@ -38,7 +39,7 @@ EOF
$(find "$GEN_DIR" -type f -name "*.du")
# }}}
# 2. Meta handling {{{
- mawk -f ./meta/meta.awk $(find "$GEN_DIR" -type f -name "*.html")
+ mawk -f ./meta/meta.awk -v date="$(date +%Y-%m-%d)" $(find "$GEN_DIR" -type f -name "*.html")
# }}}
# 2. Tiny version, strip away styles and other stuff {{{
# TODO