diff --git a/internal/render/render.go b/internal/render/render.go index fbbaf4e..28b0d7a 100644 --- a/internal/render/render.go +++ b/internal/render/render.go @@ -107,14 +107,12 @@ func RenderTemplate(w http.ResponseWriter, filename string) { if err == nil { app.Logger.Debug(fmt.Sprintf("Loaded data for template %s.", filename), "data", data) if _, ok := data.StringMap["GeneratedAt"]; !ok { - data.StringMap["GeneratedAt"] = app.TemplateCache.Cache[filename].GeneratedAt.Format(time.UnixDate) + data.StringMap["GeneratedAt"] = template.GeneratedAt.Format(time.UnixDate) } } else { app.Logger.Info(fmt.Sprintf("Loading template data for %s failed, using default template data.", filename), "err", err) data = models.MakeBasicTemplateData(template.GeneratedAt) } - l := data.LinkMap["Personal"] - app.Logger.Debugf("%[1]v is %[1]T", l) // Execute templates in a new buffer buf := new(bytes.Buffer)