summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-21 21:16:43 +0100
committerVolpeon <git@volpeon.ink>2020-12-21 21:16:43 +0100
commitfe48bee6e9d409704bc09b1ae5527e2de1115fc8 (patch)
treea61a373ee1461f72d5e866ebac7074941bf1d08b /build.sh
parentUse Pandoc to write content in Markdown (diff)
downloadvolpeon.ink-fe48bee6e9d409704bc09b1ae5527e2de1115fc8.tar.gz
volpeon.ink-fe48bee6e9d409704bc09b1ae5527e2de1115fc8.tar.bz2
volpeon.ink-fe48bee6e9d409704bc09b1ae5527e2de1115fc8.zip
Added makefile
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh25
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
3SITE_TITLE="Volpeon's Den"
4
5rm -rf dist/*
6
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 \
13 --flavor='woff2' \
14 --output-file='dist/iosevka-term-ss09-regular.woff2'
15
16pyftsubset 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
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" \;