From 6fa8c8c62459be6a6b48e66dea30fb288478bbdc Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Fri, 15 Nov 2013 14:58:00 -0500 Subject: [PATCH] move articles to is/writing/about --- contents/{articles => is/writing/about}/.empty | 0 plugins/paginator.coffee | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) rename contents/{articles => is/writing/about}/.empty (100%) diff --git a/contents/articles/.empty b/contents/is/writing/about/.empty similarity index 100% rename from contents/articles/.empty rename to contents/is/writing/about/.empty diff --git a/plugins/paginator.coffee b/plugins/paginator.coffee index 2fa4273..677aba9 100644 --- a/plugins/paginator.coffee +++ b/plugins/paginator.coffee @@ -5,7 +5,6 @@ module.exports = (env, callback) -> defaults = template: 'index.jade' # template that renders pages - articles: 'articles' # directory containing contents to paginate first: 'index.html' # filename/url for first page filename: 'page/%d/index.html' # filename for rest of pages perPage: 2 # number of articles per page @@ -18,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[options.articles]._.directories.map (item) -> item.index + articles = contents.is.writing.about._.directories.map (item) -> item.index articles.sort (a, b) -> b.date - a.date return articles