From 0a9de353b2456505b0b8214fab4a7c844d31735c Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Sun, 29 Mar 2026 02:05:06 +0700 Subject: fix: add page metadata correctly feat: link marker fill saturation and brightness in the global map to the publication date --- internal/router/handlers/lang-user.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'internal/router/handlers/lang-user.go') diff --git a/internal/router/handlers/lang-user.go b/internal/router/handlers/lang-user.go index db566fe..c22bcac 100644 --- a/internal/router/handlers/lang-user.go +++ b/internal/router/handlers/lang-user.go @@ -37,6 +37,13 @@ func (r *UserHandler) ToValidateLang() router.LangSetting { return router.InPath } +func (r *UserHandler) AddMeta(c *fiber.Ctx, supplements *router.Supplements, lang string, templateMap fiber.Map) (meta map[string]string, err error) { + return map[string]string{ + "og:title": supplements.Localization[lang].BlogSearch.Header, + "og:description": supplements.Localization[lang].BlogSearch.Description, + }, nil +} + func (r *UserHandler) RenderBody(c *fiber.Ctx, supplements *router.Supplements, lang string, templateMap fiber.Map) (statusCode int, err error) { templateMap["Title"] = supplements.Localization[lang].UserProfile.Header -- cgit v1.3.1+17