diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b2ff054 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +build: + ./node_modules/.bin/wintersmith build + +clean: + @ rm -rf build + +preview: + ./node_modules/.bin/wintersmith preview + +add_article: + @echo "Enter Article Title: " + @read title;\ + mkdir -p contents/is/writing/about/$$title;\ + cat base.md | sed s/{title}/$$title/g | sed s/{date}/`date "+%Y-%m-%d"`/g> contents/is/writing/about/$$title/index.md;\ + emacs contents/is/writing/about/$$title/index.md + +remove_article: + @echo "Enter Article Title: " + @read title;\ + rm -rf contents/is/writing/about/$$title + +.PHONY: build clean preview add_article remove_article diff --git a/base.md b/base.md new file mode 100644 index 0000000..1528b03 --- /dev/null +++ b/base.md @@ -0,0 +1,6 @@ +--- +title: {title} +author: Brett Langdon +date: {date} +template: article.jade +---