index.pug 642 B

123456789101112131415161718192021222324252627
  1. extends layout
  2. block content
  3. include author
  4. each article in articles
  5. article.article.intro
  6. header
  7. p.date
  8. span= moment.utc(article.date).format('DD. MMMM YYYY')
  9. h2
  10. a(href=article.url)= article.title
  11. section.content
  12. if article.intro.length > 0
  13. != typogr(article.intro).typogrify()
  14. if article.hasMore
  15. p.more
  16. a(href=article.url) more
  17. block prepend footer
  18. div.nav
  19. if prevPage
  20. a(href=prevPage.url) « Newer
  21. else
  22. a(href='/archive.html') « Archives
  23. if nextPage
  24. a(href=nextPage.url) Next page »