From 05fd032bea87db6ee8cde7d53eabac0c6d6a1657 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sun, 9 Jun 2019 00:54:05 -0400 Subject: [PATCH] web: bugfix pack * menuize front page * fix url bug * fix cli --- bot/web.go | 14 +++++++------- plugins/cli/index.go | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) 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 }}" }} + +
- + @@ -82,6 +82,7 @@ var indexHTML = `