diff --git a/bot/web.go b/bot/web.go index bbe62ec..b8e52ed 100644 --- a/bot/web.go +++ b/bot/web.go @@ -20,7 +20,7 @@ func (b *bot) GetWebNavigation() []EndPoint { endpoints := b.httpEndPoints moreEndpoints := b.config.GetArray("bot.links", []string{}) for _, e := range moreEndpoints { - link := strings.Split(e, ":") + link := strings.SplitN(e, ":", 2) if len(link) != 2 { continue } @@ -51,12 +51,12 @@ var rootIndex = `
- -

catbase

- - {{ "{{ item.Name }}" }} - -
+ + catbase + + {{ "{{ item.Name }}" }} + +