diff options
| author | 2026-03-31 00:13:10 +0700 | |
|---|---|---|
| committer | 2026-03-31 00:13:10 +0700 | |
| commit | c7742b341a46360d16dd9035c046f004d0fe760c (patch) | |
| tree | fa453143f80c357755955e870b7c8f47f47abb49 /internal/router/handlers/root.go | |
| parent | a0ace41ad3b0f4661e98d8fa8ef254369cc80d1e (diff) | |
| download | web-c7742b341a46360d16dd9035c046f004d0fe760c.tar.gz web-c7742b341a46360d16dd9035c046f004d0fe760c.zip | |
feat: enable etag middleware
feat: enable compress middleware
feat: trim end slash of each request url (except for root)
Diffstat (limited to 'internal/router/handlers/root.go')
| -rw-r--r-- | internal/router/handlers/root.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/router/handlers/root.go b/internal/router/handlers/root.go index f188a61..cd01fcd 100644 --- a/internal/router/handlers/root.go +++ b/internal/router/handlers/root.go @@ -37,14 +37,14 @@ func (r *RootHandler) CacheDuration() time.Duration { } func (r *RootHandler) SitemapInfo(_ *router.Supplements) []router.SitemapInfo { - return []router.SitemapInfo{{Loc: "", Priority: 0.7}} + return []router.SitemapInfo{{Loc: "/", Priority: 0.7}} } func (r *RootHandler) AddMeta(c *fiber.Ctx, supplements *router.Supplements, lang string, templateMap fiber.Map) (meta []router.MetaField, err error) { return []router.MetaField{ {Property: "og:title", Content: "Saya Blog"}, {Property: "og:description", Content: "The blog of a 25 years old, travelling God knows where, proud to be not mainstream // Личный блог 25-летки, странствующего по ебеням, зато не мейнстрим"}, - {Property: "og:url", Content: fmt.Sprint(templateMap["CanonicalEndpoint"])}, + {Property: "og:url", Content: fmt.Sprint(templateMap["CanonicalEndpoint"]) + "/"}, {Property: "og:type", Content: "website"}, }, nil } |