On my index page I wanna give out two seperate lists of articles (I wouldn't mind using the pagination plugin by the way), and I want to list the last 5 in each "category". But I have no idea how I can count up in the loop.
I already tried
#{news-loop} = #{news-loop} + 1
but that did not work.
- var news-loop = 0
block content
section.work.index
h2 Arbeiten
a.archive(href='/arbeiten') Übersicht
ul
each article in articles
if article.metadata.work
li
h3
a(href=article.url)= article.title