From 0f8bfb6328c97dc0555d553761c5272056ebdcda Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 29 Dec 2023 08:28:17 +0800 Subject: [PATCH] chore: update index.html --- server/frontend/frontend.go | 3 ++- web/index.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server/frontend/frontend.go b/server/frontend/frontend.go index e100e269..35b25f81 100644 --- a/server/frontend/frontend.go +++ b/server/frontend/frontend.go @@ -79,7 +79,8 @@ func (s *FrontendService) registerRoutes(e *echo.Echo) { } // Inject memo metadata into `index.html`. - indexHTML := strings.ReplaceAll(rawIndexHTML, "", generateMemoMetadata(memo, creator).String()) + indexHTML := strings.ReplaceAll(rawIndexHTML, "", generateMemoMetadata(memo, creator).String()) + indexHTML = strings.ReplaceAll(indexHTML, "", fmt.Sprintf("", memo.ID)) return c.HTML(http.StatusOK, indexHTML) }) } diff --git a/web/index.html b/web/index.html index e657174e..51965907 100644 --- a/web/index.html +++ b/web/index.html @@ -6,11 +6,12 @@ - + Memos
+