Browse Source

add makefile and base article md file

pull/1/head
Brett Langdon 12 years ago
parent
commit
52b1e6a39a
2 changed files with 28 additions and 0 deletions
  1. +22
    -0
      Makefile
  2. +6
    -0
      base.md

+ 22
- 0
Makefile View File

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

+ 6
- 0
base.md View File

@ -0,0 +1,6 @@
---
title: {title}
author: Brett Langdon
date: {date}
template: article.jade
---

Loading…
Cancel
Save