diff --git a/helpers/template/build.go b/helpers/template/build.go index 946bc2b..90070a8 100644 --- a/helpers/template/build.go +++ b/helpers/template/build.go @@ -91,6 +91,7 @@ func TemplateFuncs() template.FuncMap { return "" } }, + "rangeClass": rangeClass, } } @@ -132,7 +133,6 @@ func PageRange(current, total int) []int { return pages } -// ToDo: Should be ball range class, and should it even be here? func rangeClass(n int) string { switch { case n >= 1 && n <= 9: