diff options
| author | Eltrac <hi@guhub.cn> | 2025-02-26 14:25:55 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-02-26 14:25:55 +0800 |
| commit | bc70832f2965cfbd821feab659bb19867966ddc1 (patch) | |
| tree | c34e8d2994b48875cc74ee029d2500a5d31d79d9 | |
| parent | 23f6f5675f1b754bfe4f351ec5b6a1bc79d2262d (diff) | |
style: fine-tunes static comment style
Former-commit-id: 530dbfb7eabeaa7213a9c000de07e875994879fe
| -rw-r--r-- | assets/css/components/_comment.scss | 3 | ||||
| -rw-r--r-- | i18n/en.yml | 1 | ||||
| -rw-r--r-- | i18n/zh.yml | 1 | ||||
| -rw-r--r-- | layouts/partials/components/comment.html | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/assets/css/components/_comment.scss b/assets/css/components/_comment.scss index 996f7e26..d181bc88 100644 --- a/assets/css/components/_comment.scss +++ b/assets/css/components/_comment.scss @@ -21,7 +21,8 @@ } .static-comments-item-footer { font-size: 1rem; - text-align: right + text-align: right; + color: var(--secondary-text-color); } } } diff --git a/i18n/en.yml b/i18n/en.yml index 4cc22fc5..6b3573d6 100644 --- a/i18n/en.yml +++ b/i18n/en.yml @@ -5,6 +5,7 @@ archivePage: postPage: commentNotLoaded: if comment is not loaded, please try refreshing staticCommentsSectionHeader: These are static comments that are stored in frontmatter of this page. They used to be in different comment platforms, but now they are integrated into the page's content. + originallyPostedOn: 'originally posted on {{ . }}' footer: wordCount: '🪦 {{ . }} words are buried here' licenseStatement: 'Licensed under {{ . }}' diff --git a/i18n/zh.yml b/i18n/zh.yml index 107b9ed1..85079559 100644 --- a/i18n/zh.yml +++ b/i18n/zh.yml @@ -5,6 +5,7 @@ archivePage: postPage: commentNotLoaded: 如果评论未加载,请尝试刷新页面 staticCommentsSectionHeader: 这些是曾经发布在不同评论平台上的评论,现在它们已经作为静态内容集成到页面中。 + originallyPostedOn: '原本发表于 {{ . }}' footer: wordCount: '🪦 {{ . }} 字在这里死去' licenseStatement: '以 {{ . }} 协议授权' diff --git a/layouts/partials/components/comment.html b/layouts/partials/components/comment.html index ac39723a..3d7495c0 100644 --- a/layouts/partials/components/comment.html +++ b/layouts/partials/components/comment.html @@ -14,7 +14,7 @@ </div> <div class="static-comments-item-footer"> {{ with .source }} - <p class="font-mono">originally posted on {{ . }}</p> + <p class="font-mono">{{ T "postPage.originallyPostedOn" . }}</p> {{ end }} </div> </div> |
