diff options
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/build.sh b/build.sh deleted file mode 100755 index bc733cc..0000000 --- a/build.sh +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | SITE_TITLE="Volpeon's Den" | ||
4 | |||
5 | rm -rf dist/* | ||
6 | |||
7 | sassc assets/style.scss dist/style.css | ||
8 | node_modules/.bin/postcss dist/style.css -r | ||
9 | |||
10 | pyftsubset assets/iosevka-term-ss09-regular.ttf \ | ||
11 | --text-file='assets/glyphs.txt' \ | ||
12 | --layout-features+=ss09,dlig \ | ||
13 | --flavor='woff2' \ | ||
14 | --output-file='dist/iosevka-term-ss09-regular.woff2' | ||
15 | |||
16 | pyftsubset assets/iosevka-term-ss09-bold.ttf \ | ||
17 | --text-file='assets/glyphs.txt' \ | ||
18 | --layout-features+=ss09,dlig \ | ||
19 | --flavor='woff2' \ | ||
20 | --output-file='dist/iosevka-term-ss09-bold.woff2' | ||
21 | |||
22 | find content/ \ | ||
23 | -iname "*.md" \ | ||
24 | -type f \ | ||
25 | -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" \; | ||