From 52b1e6a39a52593428162129efea0bf09e5aa5e5 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Fri, 15 Nov 2013 16:42:20 -0500 Subject: [PATCH] add makefile and base article md file --- Makefile | 22 ++++++++++++++++++++++ base.md | 6 ++++++ 2 files changed, 28 insertions(+) create mode 100644 Makefile create mode 100644 base.md 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 +---