diff --git a/_config.yml b/_config.yml index 6cc364d5..85c67f5f 100644 --- a/_config.yml +++ b/_config.yml @@ -604,6 +604,18 @@ post: # Options: busuanzi | leancloud | umami source: "busuanzi" + # 评论数 + # Number of comments + comments: + enable: false + # 数据来源,目前仅支持 Twikoo 评论系统 + # Data Source, currently only support Twikoo comment system + # Options: twikoo + source: "twikoo" + # 是否包含回复数 + # If true, include the number of replies + reply: false + # 在文章开头显示文章更新时间,该时间默认是 md 文件更新时间,可通过 front-matter 中 `updated` 手动指定(和 date 一样格式) # Update date is displayed at the beginning of the post. The default date is the update date of the md file, which can be manually specified by `updated` in front-matter (same format as date) updated: diff --git a/languages/en.yml b/languages/en.yml index b54328d5..22d3a86b 100644 --- a/languages/en.yml +++ b/languages/en.yml @@ -47,6 +47,7 @@ post: wordcount: '%s words' min2read: '%s mins' views: '{} views' + comments: '{} comments' copyright: author: 'Author' posted: 'Posted on' diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index 850d755e..44c02eed 100644 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -47,6 +47,7 @@ post: wordcount: '%s 字' min2read: '%s 分钟' views: '{} 次' + comments: '{} 条' copyright: author: '作者' posted: '发布于' diff --git a/languages/zh-HK.yml b/languages/zh-HK.yml index 01a267f6..25998913 100644 --- a/languages/zh-HK.yml +++ b/languages/zh-HK.yml @@ -47,6 +47,7 @@ post: wordcount: '%s 字' min2read: '%s 分鐘' views: '{} 次' + comments: '{} 條' copyright: author: '作者' posted: '發布於' diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml index 42e45ced..b8b3b972 100644 --- a/languages/zh-TW.yml +++ b/languages/zh-TW.yml @@ -47,6 +47,7 @@ post: wordcount: '%s 字' min2read: '%s 分鐘' views: '{} 次' + comments: '{} 條' copyright: author: '作者' posted: '發布於' diff --git a/layout/_partials/post/meta-top.ejs b/layout/_partials/post/meta-top.ejs index 3e2e5452..3fd8b5db 100644 --- a/layout/_partials/post/meta-top.ejs +++ b/layout/_partials/post/meta-top.ejs @@ -46,26 +46,37 @@ <% var views_texts = (theme.post.meta.views.format || __('post.meta.views')).split('{}') %> <% if (theme.post.meta.views.enable && views_texts.length >= 2) { %> <% if (theme.post.meta.views.source === 'leancloud') { %> -