blob: bc733ccbfdf31951fa986482feca23b0c71ce5ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
SITE_TITLE="Volpeon's Den"
rm -rf dist/*
sassc assets/style.scss dist/style.css
node_modules/.bin/postcss dist/style.css -r
pyftsubset assets/iosevka-term-ss09-regular.ttf \
--text-file='assets/glyphs.txt' \
--layout-features+=ss09,dlig \
--flavor='woff2' \
--output-file='dist/iosevka-term-ss09-regular.woff2'
pyftsubset assets/iosevka-term-ss09-bold.ttf \
--text-file='assets/glyphs.txt' \
--layout-features+=ss09,dlig \
--flavor='woff2' \
--output-file='dist/iosevka-term-ss09-bold.woff2'
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" \;
|