aboutsummaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-07-17 10:58:26 +0000
committerFuwn <[email protected]>2021-07-17 10:58:26 +0000
commitc0cda289d92e75daa599cb7513681103e0a2db57 (patch)
tree3617b5e7918ff9aa642374ae5f5e5c15842d6edd /handler.go
parentfix(templates): add blog quick link (diff)
downloadspace-c0cda289d92e75daa599cb7513681103e0a2db57.tar.xz
space-c0cda289d92e75daa599cb7513681103e0a2db57.zip
feat(route): blog handler for multi-blog support
Diffstat (limited to 'handler.go')
-rw-r--r--handler.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/handler.go b/handler.go
index cd6bb3d..2fb31f2 100644
--- a/handler.go
+++ b/handler.go
@@ -15,7 +15,9 @@ func routes() {
createRoute("/interests", "default.gmi", "pages/interests.gmi")
createRoute("/contact", "default.gmi", "pages/contact.gmi")
createRoute("/gemini", "default.gmi", "pages/gemini.gmi")
- createBlogRoute("/blog", "pages/blog")
+
+ createBlogRoute("/tech", "pages/blog", "Tech")
+ createBlogHandler("/blog")
}
func errors() {