proper template generation time if not in cache

This commit is contained in:
Lilian Jónsdóttir 2024-01-23 13:50:55 -08:00
parent 6b1205e4f3
commit b9c0bd863b

View file

@ -45,7 +45,9 @@ func makeBasicTemplateData(name string) models.TemplateData {
"GeneratedAt": cacheItem.GeneratedAt.Format(time.UnixDate),
}
} else {
strMap = make(map[string]string)
strMap = map[string]string{
"GeneratedAt": time.Now().Format(time.UnixDate),
}
}
templateData := models.TemplateData{