diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-01 17:20:59 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-01 17:20:59 +0200 |
commit | 4ea63e98cc999ab05d1ac98b64875d7413e86972 (patch) | |
tree | 0edf4f1a65fd53d0e2d6e5bcbbafb5a71faa6cc7 /templates/base.qtpl | |
parent | 8f5f9ff24b0327f7640e3619de109e1f19cfba1d (diff) | |
download | cerrado-4ea63e98cc999ab05d1ac98b64875d7413e86972.tar.gz cerrado-4ea63e98cc999ab05d1ac98b64875d7413e86972.tar.bz2 cerrado-4ea63e98cc999ab05d1ac98b64875d7413e86972.zip |
feat: Add initial log
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"> |