|
|
@ -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 |