summaryrefslogtreecommitdiffstats
path: root/scripts/build_content.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build_content.sh')
-rwxr-xr-xscripts/build_content.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build_content.sh b/scripts/build_content.sh
new file mode 100755
index 0000000..4476d45
--- /dev/null
+++ b/scripts/build_content.sh
@@ -0,0 +1,8 @@
1#!/bin/bash
2
3SITE_TITLE="Volpeon's Den"
4
5find content/ \
6 -iname "*.md" \
7 -type f \
8 -exec sh -c 'TARGET=dist/$(echo ${0%.md}.html | cut -sd / -f 2-); mkdir -p $(dirname $TARGET) && pandoc "${0}" -t html5 --template templates/base.html -o "$TARGET" --metadata sitetitle="$1"' {} "$SITE_TITLE" \;