diff options
| author | Franklin Wei <franklin@rockbox.org> | 2019-10-08 14:04:56 -0400 |
|---|---|---|
| committer | Franklin Wei <franklin@rockbox.org> | 2019-10-08 14:04:56 -0400 |
| commit | bf16fee7eb78b9385f6007c14e9e9c4c857dc174 (patch) | |
| tree | c79f6830f7cb700b511012ddbc2b9efc7e7f8ca4 /build.sh | |
| parent | cfa7559866c05b0422b6965dd1e32080538e17bd (diff) | |
| download | blog-bf16fee7eb78b9385f6007c14e9e9c4c857dc174.zip blog-bf16fee7eb78b9385f6007c14e9e9c4c857dc174.tar.gz blog-bf16fee7eb78b9385f6007c14e9e9c4c857dc174.tar.bz2 blog-bf16fee7eb78b9385f6007c14e9e9c4c857dc174.tar.xz | |
Clean up.
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..23030c4 --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +rm -rf out +mkdir -p out + +cd posts + +for f in *.md +do + pandoc --email-obfuscation=javascript -s -t html --css=/style.css -B ../header.inc -A ../footer.inc --metadata pagetitle="FWEI.TK | ""$(../extract_field.sh ../index.csv $f 2)" -o ../out/${f%.md}.html $f +done + +cd - + +cp files/* out/ |