From 43070cdce309bb66becfb9070e0e04aab7fd3820 Mon Sep 17 00:00:00 2001 From: nyne Date: Thu, 2 Oct 2025 22:34:51 +0800 Subject: [PATCH] Fix description --- frontend/index.html | 2 +- server/middleware/frontend_middleware.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/index.html b/frontend/index.html index d81a354..be25b42 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -38,7 +38,7 @@ window.siteInfo = `{{SiteInfo}}`; window.uploadPrompt = `{{UploadPrompt}}`; window.allowNormalUserUpload = `{{AllowNormalUserUpload}}`; - window.siteDescription = `{{Description}}`; + window.siteDescription = `{{SiteDescription}}`;
diff --git a/server/middleware/frontend_middleware.go b/server/middleware/frontend_middleware.go index 1a05499..d1527ee 100644 --- a/server/middleware/frontend_middleware.go +++ b/server/middleware/frontend_middleware.go @@ -171,6 +171,7 @@ func serveIndexHtml(c fiber.Ctx) error { content = strings.ReplaceAll(content, "{{SiteName}}", siteName) content = strings.ReplaceAll(content, "{{Description}}", description) + content = strings.ReplaceAll(content, "{{SiteDescription}}", config.ServerDescription()) content = strings.ReplaceAll(content, "{{Preview}}", preview) content = strings.ReplaceAll(content, "{{Title}}", title) content = strings.ReplaceAll(content, "{{Url}}", htmlUrl)