Fixed article order, latest 3 instead of 4 on about page and moved article date.

This commit is contained in:
Marvin Blum
2020-07-29 20:39:05 +02:00
committed by Marvin Blum
parent f4a3b27d25
commit c1bc4d7cda
4 changed files with 25 additions and 16 deletions

View File

@@ -21,8 +21,9 @@
<h2>Latest Blog Posts</h2>
{{range $article := .Articles}}
<p>
<a href="/blog/{{slug $article.LatestArticleContent.Title}}-{{$article.Id}}">{{$article.LatestArticleContent.Title}}</a>
<small>{{format $article.Published "2. January 2006"}}</small>
<br />
<a href="/blog/{{slug $article.LatestArticleContent.Title}}-{{$article.Id}}">{{$article.LatestArticleContent.Title}}</a>
</p>
{{else}}
<p>There are no blog posts yet...</p>