Skip to content

Commit

Permalink
Updates syntax for latest version of Jade
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethormandy committed Apr 18, 2015
1 parent 0350546 commit 9ba1c4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions public/_shared/article-nav.jade
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
articles = [] - var articles = []
for article, slug in public.articles._data for article, slug in public.articles._data
if article.date && article.published!==false if article.date && article.published!==false
- article.slug = slug - article.slug = slug
Expand All @@ -20,4 +20,4 @@ each article, i in articles.sort(function(a,b){ a = new Date(a.date); b = new Da
if prev if prev
a.post-prev(href="#{ prev.slug }") #{ prev.title } a.post-prev(href="#{ prev.slug }") #{ prev.title }
if next if next
a.post-next(href="#{ next.slug }") #{ next.title } a.post-next(href="#{ next.slug }") #{ next.title }
4 changes: 2 additions & 2 deletions public/_shared/articles.jade
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
make the slug a property of the make the slug a property of the
object in a new array instead. object in a new array instead.
articles = [] - var articles = []
for article, slug in public.articles._data for article, slug in public.articles._data
if article.date if article.date
- article.slug = slug - article.slug = slug
Expand Down Expand Up @@ -36,4 +36,4 @@ ul.post-list
are show. In this case, the articles page. are show. In this case, the articles page.
if postlimit < articles.length if postlimit < articles.length
a(href="/articles") View all articles a(href="/articles") View all articles

0 comments on commit 9ba1c4e

Please sign in to comment.