summaryrefslogtreecommitdiffci
path: root/main.go
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <saya.andy@posteo.com> 2025-09-04 00:51:05 +0700
committerGravatar SayaAndy <saya.andy@posteo.com> 2025-09-04 00:51:05 +0700
commit0802dc3a8835bc19cf994f9eb2b462df604d4262 (patch)
tree60b50749018d014bb56c501fb5ddb89ca2318631 /main.go
parentfad8679f7173273e528d626c5c03f90d02010733 (diff)
downloadweb-0802dc3a8835bc19cf994f9eb2b462df604d4262.tar.gz
web-0802dc3a8835bc19cf994f9eb2b462df604d4262.zip
feat: reroute general page derivations to general page route
feat: always have page body in square aspect ratio feat: change to mobile view on 1.1/1 aspect ratio (instead of 0.8/1) feat: dynamically change title with any new page feat: cache general page template
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index e4e5a45..2f8ef4b 100644
--- a/main.go
+++ b/main.go
@@ -133,8 +133,8 @@ func main() {
app.Get("/", router.Root(cfg.AvailableLanguages))
app.Get("/:lang/map", router.Lang_Map(localization, availableLanguages, b2Client))
- app.Get("/:lang/blog", router.Lang_Blog(localization, availableLanguages, b2Client))
- app.Get("/:lang/blog/:title", router.Lang_Blog_Title(localization, availableLanguages, b2Client, md))
+ app.Get("/:lang/blog", router.Api_V1_GeneralPage(localization, availableLanguages))
+ app.Get("/:lang/blog/:title", router.Api_V1_GeneralPage(localization, availableLanguages))
app.Get("/api/v1/tz", router.Api_V1_TZ())
app.Get("/api/v1/blog-search", router.Api_V1_BlogSearch(localization, availableLanguages, b2Client))