summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh24
1 files changed, 17 insertions, 7 deletions
diff --git a/build.sh b/build.sh
index 3746369..bc733cc 100755
--- a/build.sh
+++ b/build.sh
@@ -1,15 +1,25 @@
1#!/bin/bash 1#!/bin/bash
2 2
3sassc --style expanded src/style.scss dist/style.css 3SITE_TITLE="Volpeon's Den"
4 4
5pyftsubset src/iosevka-term-ss09-regular.ttf \ 5rm -rf dist/*
6 --text-file='src/glyphs.txt' \ 6
7 --layout-features+=ss09,PURS \ 7sassc assets/style.scss dist/style.css
8node_modules/.bin/postcss dist/style.css -r
9
10pyftsubset 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
11pyftsubset src/iosevka-term-ss09-bold.ttf \ 16pyftsubset 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
22find 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" \;