Browse Source

move articles to is/writing/about

pull/1/head
Brett Langdon 12 years ago
parent
commit
6fa8c8c624
2 changed files with 1 additions and 2 deletions
  1. +0
    -0
      contents/is/writing/about/.empty
  2. +1
    -2
      plugins/paginator.coffee

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


+ 1
- 2
plugins/paginator.coffee View File

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


Loading…
Cancel
Save