From 9536ce7dbc976384484926f73e2b745b2bc8847e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Mon, 18 Aug 2025 17:35:09 -0700 Subject: [PATCH] fix(version): change development version naming to avoid breaking some clients Some Miniflux clients expect a specific version format. For example, Flux News converts the string version to an integer. Using `Development Version` will break some clients. --- internal/template/functions.go | 1 + internal/template/templates/views/about.html | 6 +++--- internal/version/version.go | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) 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 @@