Download blog file attachments when caching articles.

This commit is contained in:
2020-06-14 15:16:44 +02:00
parent bdb3261959
commit 6fe95443a0
6 changed files with 61 additions and 6 deletions

View File

@@ -22,6 +22,7 @@
{{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>
</p>
{{else}}
<p>There are no blog posts yet...</p>

View File

@@ -3,7 +3,7 @@
<section>
<h1>{{.Title}}</h1>
<small>Published on {{.Published}}</small>
<small>Published on {{format .Published "2. January 2006"}}</small>
{{.Content}}
</section>

View File

@@ -9,6 +9,7 @@
{{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>
</p>
{{end}}
{{else}}