diff --git a/template.go b/template.go index 47f2905..a72fdf3 100644 --- a/template.go +++ b/template.go @@ -69,6 +69,7 @@ func (s *Site) getTemplate(templatesFS http.FileSystem, name string, extraFuncs "subtract": func(a, b int) int { return a - b }, "replace": strings.Replace, "trimPrefix": strings.TrimPrefix, + "contains": strings.Contains, "hasRootURL": func() bool { return s.Root != nil },