diff --git a/page/page.go b/page/page.go index 08e29d4..4560382 100644 --- a/page/page.go +++ b/page/page.go @@ -37,3 +37,8 @@ func (sp *StaticPage) SanitizeHost(cfg *config.Config) { sp.Host = cfg.Server.HiddenHost } } + +func (sp StaticPage) OfficialVersion() string { + p := strings.Split(sp.Version, "-") + return p[0] +} diff --git a/templates/include/footer.tmpl b/templates/include/footer.tmpl index b7291bf..e92878a 100644 --- a/templates/include/footer.tmpl +++ b/templates/include/footer.tmpl @@ -4,7 +4,7 @@ {{if .SingleUser}}