Added blog page, article page and added latest articles to start page.

This commit is contained in:
2020-06-14 02:16:39 +02:00
parent 71ca09427f
commit da2bc2ef28
11 changed files with 325 additions and 57 deletions

View File

@@ -19,9 +19,13 @@
</section>
<section>
<h2>latest blog posts</h2>
<p>
TODO
</p>
{{range $article := .Articles}}
<p>
<a href="/blog/{{slug $article.LatestArticleContent.Title}}-{{$article.Id}}">{{$article.LatestArticleContent.Title}}</a>
</p>
{{else}}
<p>There are no blog posts yet...</p>
{{end}}
<p>
<a href="/blog">View all</a>
</p>