From 4ea63e98cc999ab05d1ac98b64875d7413e86972 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 1 Jun 2024 17:20:59 +0200 Subject: feat: Add initial log --- templates/base.qtpl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'templates/base.qtpl') 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) %} -- cgit v1.2.3