blob: 4476d45a29e2dd89b340785d34d417fbb7030ba5 (
plain) (
blame)
1
2
3
4
5
6
7
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" \;
|