aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: ffb1361fe26d33a720c1b3c8423d10dc59088088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

rm -rf blog-staging
mkdir -p blog-staging

cd posts

for f in *.md
do
    pandoc --email-obfuscation=javascript --mathjax -s -t html --css=/style.css -B ../header.inc -A ../footer.inc --metadata pagetitle="FWEI.TK | ""$(../extract_field.sh ../index.csv $f 2)" -o ../blog-staging/${f%.md}.html $f
done

cd -

cp files/* blog-staging/