diff --git a/internal/template/functions.go b/internal/template/functions.go index e1926e95..d5a65eca 100644 --- a/internal/template/functions.go +++ b/internal/template/functions.go @@ -32,6 +32,7 @@ type funcMap struct { // Map returns a map of template functions that are compiled during template parsing. func (f *funcMap) Map() template.FuncMap { return template.FuncMap{ + "contains": strings.Contains, "startsWith": strings.HasPrefix, "formatFileSize": formatFileSize, "dict": dict, diff --git a/internal/template/templates/views/about.html b/internal/template/templates/views/about.html index 873dbd3a..627740a5 100644 --- a/internal/template/templates/views/about.html +++ b/internal/template/templates/views/about.html @@ -13,10 +13,10 @@