chris-website/views/pages/article-list.dt
2021-11-18 19:28:24 +01:00

26 lines
606 B
Plaintext

extends parts/page
block header
title Posts - Netsoj.nl
block sidebar
block content
header
h1.title Post list
- import vibe.d;
- if (articleList.length == 0)
p No posts found
- else
- import nl.netsoj.chris.blog.utils;
- foreach(article; articleList)
article
header
a(href="/posts/#{article.slug}", rel="bookmark")
h2.title #{article.title}
p.subtitle
| By #{article.author} on #{article.firstPublished.toHumanString}
- if (article.firstPublished != article.updated)
|, updated on #{article.updated.toHumanString}
p #{article.excerpt}…