diff --git a/main.go b/main.go index 42b333a..953a30d 100644 --- a/main.go +++ b/main.go @@ -96,6 +96,9 @@ var funcMap = template.FuncMap{ } return false }, + "now": func(format string) string { + return time.Now().Format(format) + }, } func FetchPosts(c *gin.Context) { diff --git a/templates/base/footer.html b/templates/base/footer.html index ff9c3e4..c5909bd 100644 --- a/templates/base/footer.html +++ b/templates/base/footer.html @@ -1,5 +1,5 @@