From 76f9d84fa0c3f04e6f840d4c79816c29512764a4 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sun, 25 Nov 2018 07:09:34 -0500 Subject: [PATCH] add new route for board list --- contrib/backends/srndv2/src/srnd/null_cache.go | 6 ++++++ contrib/templates/placebo/frontpage.mustache | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/contrib/backends/srndv2/src/srnd/null_cache.go b/contrib/backends/srndv2/src/srnd/null_cache.go index b5bbcec..6af4724 100644 --- a/contrib/backends/srndv2/src/srnd/null_cache.go +++ b/contrib/backends/srndv2/src/srnd/null_cache.go @@ -97,6 +97,12 @@ func (self *nullHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } + // board list page + if strings.ToLower(path) == "/b/" { + template.genBoardList(self.prefix, self.name, w, self.database, i18n) + return + } + if strings.HasPrefix(path, "/b/") { // board handler parts := strings.Split(path[3:], "/") diff --git a/contrib/templates/placebo/frontpage.mustache b/contrib/templates/placebo/frontpage.mustache index 7036869..5f52709 100644 --- a/contrib/templates/placebo/frontpage.mustache +++ b/contrib/templates/placebo/frontpage.mustache @@ -26,9 +26,10 @@
-

Enter

-

Board List

+

Board List

+ Firehose FAQ +