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

@@ -7,6 +7,7 @@ import (
"html/template"
"net/http"
"os"
"time"
)
const (
@@ -21,6 +22,9 @@ var (
var funcMap = template.FuncMap{
"slug": slug.Make,
"format": func(t time.Time, layout string) string {
return t.Format(layout)
},
}
func LoadTemplate() {