Browse Source

just use writing/about not is/writing/about

pull/1/head
Brett Langdon 12 years ago
parent
commit
c75d18f922
4 changed files with 12 additions and 4 deletions
  1. +3
    -3
      Makefile
  2. +0
    -0
      contents/writing/about/.empty
  3. +8
    -0
      contents/writing/about/test/index.md
  4. +1
    -1
      plugins/paginator.coffee

+ 3
- 3
Makefile View File

@ -1,5 +1,5 @@
WINTERSMITH = ./node_modules/.bin/wintersmith
ARTICLE_DIR = ./contents/is/writing/about
ARTICLE_DIR = ./contents/writing/about
build:
@$(WINTERSMITH) build
@ -16,7 +16,7 @@ add_article:
dir=`echo $$title | sed "s/ /-/g"`;\
mkdir -p $(ARTICLE_DIR)/$$dir;\
cat base.md | sed "s/{title}/$$title/g" | sed s/{date}/`date "+%Y-%m-%d"`/g> $(ARTICLE_DIR)/$$dir/index.md;\
emacs $(ARTICLE_DIR)/$$dir/index.md
$(EDITOR) $(ARTICLE_DIR)/$$dir/index.md
remove_article:
@echo "Enter Article Title: "
@ -28,6 +28,6 @@ edit_article:
@echo "Enter Article Title: "
@read title;\
dir=`echo $$title | sed "s/ /-/g"`;\
emacs $(ARTICLE_DIR)/$$dir/index.md
$(EDITOR) $(ARTICLE_DIR)/$$dir/index.md
.PHONY: build clean preview add_article remove_article edit_article

contents/is/writing/about/.empty → contents/writing/about/.empty View File


+ 8
- 0
contents/writing/about/test/index.md View File

@ -0,0 +1,8 @@
---
title: test
author: Brett Langdon
date: 2013-11-16
template: article.jade
---
Hello

+ 1
- 1
plugins/paginator.coffee View File

@ -17,7 +17,7 @@ module.exports = (env, callback) ->
getArticles = (contents) ->
# helper that returns a list of articles found in *contents*
# note that each article is assumed to have its own directory in the articles directory
articles = contents.is.writing.about._.directories.map (item) -> item.index
articles = contents.writing.about._.directories.map (item) -> item.index
articles.sort (a, b) -> b.date - a.date
return articles


Loading…
Cancel
Save