diff options
Diffstat (limited to 'templates/base.qtpl')
-rw-r--r-- | templates/base.qtpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/base.qtpl b/templates/base.qtpl index ba32aad..16b8780 100644 --- a/templates/base.qtpl +++ b/templates/base.qtpl @@ -1,6 +1,7 @@ This is a base page template. All the other template pages implement this interface. {% import "strconv" %} +{% import "time" %} {% code var Slug = "" @@ -24,6 +25,11 @@ Page { } %} +{% code func TimeFormat(t time.Time) string { + return t.Format("2006-01-02") + } +%} + Page prints a page implementing Page interface. {% func PageTemplate(p Page) %} <html lang="en"> |