Permalink
Browse files

Updates syntax for latest version of Jade

  • Loading branch information...
1 parent 0350546 commit 9ba1c4e0289eadfed8fb7677114c900f3a6616e3 @kennethormandy committed Apr 18, 2015
Showing with 4 additions and 4 deletions.
  1. +2 −2 public/_shared/article-nav.jade
  2. +2 −2 public/_shared/articles.jade
@@ -1,4 +1,4 @@
-articles = []
+- var articles = []
for article, slug in public.articles._data
if article.date && article.published!==false
- article.slug = slug
@@ -20,4 +20,4 @@ each article, i in articles.sort(function(a,b){ a = new Date(a.date); b = new Da
if prev
a.post-prev(href="#{ prev.slug }") #{ prev.title }
if next
- a.post-next(href="#{ next.slug }") #{ next.title }
+ a.post-next(href="#{ next.slug }") #{ next.title }
@@ -2,7 +2,7 @@
make the slug a property of the
object in a new array instead.
-articles = []
+- var articles = []
for article, slug in public.articles._data
if article.date
- article.slug = slug
@@ -36,4 +36,4 @@ ul.post-list
are show. In this case, the articles page.
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.