diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 24 |
1 files changed, 17 insertions, 7 deletions
| @@ -1,15 +1,25 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | sassc --style expanded src/style.scss dist/style.css | 3 | SITE_TITLE="Volpeon's Den" |
| 4 | 4 | ||
| 5 | pyftsubset src/iosevka-term-ss09-regular.ttf \ | 5 | rm -rf dist/* |
| 6 | --text-file='src/glyphs.txt' \ | 6 | |
| 7 | --layout-features+=ss09,PURS \ | 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 \ | ||
| 8 | --flavor='woff2' \ | 13 | --flavor='woff2' \ |
| 9 | --output-file='dist/iosevka-term-ss09-regular.woff2' | 14 | --output-file='dist/iosevka-term-ss09-regular.woff2' |
| 10 | 15 | ||
| 11 | pyftsubset src/iosevka-term-ss09-bold.ttf \ | 16 | pyftsubset assets/iosevka-term-ss09-bold.ttf \ |
| 12 | --text-file='src/glyphs.txt' \ | 17 | --text-file='assets/glyphs.txt' \ |
| 13 | --layout-features+=ss09,PURS \ | 18 | --layout-features+=ss09,dlig \ |
| 14 | --flavor='woff2' \ | 19 | --flavor='woff2' \ |
| 15 | --output-file='dist/iosevka-term-ss09-bold.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" \; | ||
