mirror of
https://github.com/Kugelschieber/marvinblum.git
synced 2026-01-18 14:50:27 +00:00
Added blog page, article page and added latest articles to start page.
This commit is contained in:
@@ -2,7 +2,18 @@
|
||||
{{template "menu.html"}}
|
||||
|
||||
<section>
|
||||
<p>TODO Blog</p>
|
||||
<h1>Blog</h1>
|
||||
{{range $year, $articles := .Articles}}
|
||||
<h2>{{$year}}</h2>
|
||||
|
||||
{{range $article := $articles}}
|
||||
<p>
|
||||
<a href="/blog/{{slug $article.LatestArticleContent.Title}}-{{$article.Id}}">{{$article.LatestArticleContent.Title}}</a>
|
||||
</p>
|
||||
{{end}}
|
||||
{{else}}
|
||||
<p>There are no blog posts yet...</p>
|
||||
{{end}}
|
||||
</section>
|
||||
|
||||
{{template "end.html"}}
|
||||
|
||||
Reference in New Issue
Block a user