launcher: automatically display first help document
Change-Id: I0f887d5b9303876f6fbab4c96e935dbd58ff5936
diff --git a/core/installer/welcome/launcher.go b/core/installer/welcome/launcher.go
index fe80fe0..51313eb 100644
--- a/core/installer/welcome/launcher.go
+++ b/core/installer/welcome/launcher.go
@@ -10,6 +10,7 @@
"github.com/giolekva/pcloud/core/installer"
+ "github.com/Masterminds/sprig/v3"
"github.com/gomarkdown/markdown"
)
@@ -76,7 +77,7 @@
if err != nil {
return nil, fmt.Errorf("failed to parse template: %v", err)
}
- t := template.New("index").Funcs(template.FuncMap{
+ t := template.New("index").Funcs(template.FuncMap(sprig.FuncMap())).Funcs(template.FuncMap{
"GetUserInitials": getUserInitials,
"CleanAppName": cleanAppName,
})