From fe48bee6e9d409704bc09b1ae5527e2de1115fc8 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 21 Dec 2020 21:16:43 +0100 Subject: Added makefile --- scripts/build_content.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/build_content.sh (limited to 'scripts/build_content.sh') 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 @@ +#!/bin/bash + +SITE_TITLE="Volpeon's Den" + +find content/ \ + -iname "*.md" \ + -type f \ + -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" \; -- cgit v1.2.3-54-g00ecf