diff --git a/help/en/index.myco b/help/en.myco similarity index 100% rename from help/en/index.myco rename to help/en.myco diff --git a/help/help.go b/help/help.go index 06fc6f1..bc12477 100644 --- a/help/help.go +++ b/help/help.go @@ -5,11 +5,14 @@ import ( "embed" ) -//go:embed en +//go:embed en en.myco var fs embed.FS // Get determines what help text you need and returns it. The path is a substring from URL, it follows this form: // / func Get(path string) ([]byte, error) { + if path == "" { + return Get("en") + } return fs.ReadFile(path + ".myco") } diff --git a/views/stuff.qtpl b/views/stuff.qtpl index ddd18d1..f068f16 100644 --- a/views/stuff.qtpl +++ b/views/stuff.qtpl @@ -66,7 +66,7 @@

Help topics