diff options
| author | 2025-09-04 00:51:05 +0700 | |
|---|---|---|
| committer | 2025-09-04 00:51:05 +0700 | |
| commit | 0802dc3a8835bc19cf994f9eb2b462df604d4262 (patch) | |
| tree | 60b50749018d014bb56c501fb5ddb89ca2318631 /main.go | |
| parent | fad8679f7173273e528d626c5c03f90d02010733 (diff) | |
| download | web-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.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |