index — krinitsin.com @ main

personal website

blog/build_blog.sh (view raw)

1#!/bin/bash
2
3for f in md/*.md; do
4  date=$(head -n 6 $f | grep date | sed "s/\-//g" | grep -o "[0-9]\+")
5  name=${f##*/}
6  output="posts/${name%.md}.html"
7  pandoc "$f" --css=../../style.css --standalone --toc --highlight-style=zenburn -B header.html -A footer.html -o $output
8done
9