From 6e84ef48847b3e2b9e447ec2d19ae36ca8af7dec Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Tue, 2 Jun 2026 01:55:28 +0800 Subject: [PATCH] added comments desc --- src/i18n/en.ts | 4 ++++ src/i18n/zh.ts | 4 ++++ src/layouts/MarkdownPostLayout.astro | 1 + 3 files changed, 9 insertions(+) diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 8422dab..56b64bd 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -15,6 +15,10 @@ export default { writtenBy: "Written by", comments: "Comments", publishedOn: "Published on", + commentsDesc: [ + "Feel free to leave your thoughts here. 💭💡", + "After signing in, you can click the “Subscribe by Email” button at the bottom right of the text box to receive notifications of new interactions via email." + ] }, theme: { toggle: "Toggle theme", diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index 904e196..a29feac 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -15,6 +15,10 @@ export default { writtenBy: "作者", comments: "评论", publishedOn: "发布于", + commentsDesc: [ + "欢迎在这里留下你的想法。💭💡", + "你可以在登录评论区后,点击文本框右下角的「Subscribe by Email」以通过邮件接收最新的互动通知。" + ] }, theme: { toggle: "切换主题", diff --git a/src/layouts/MarkdownPostLayout.astro b/src/layouts/MarkdownPostLayout.astro index 4d3ee65..d07544e 100644 --- a/src/layouts/MarkdownPostLayout.astro +++ b/src/layouts/MarkdownPostLayout.astro @@ -87,6 +87,7 @@ const t = getTranslations(lang);

{comments}

+ {t.post.commentsDesc.map((line: string) =>

)}