diff options
author | Dillon <dillonzq@outlook.com> | 2022-05-25 20:51:17 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2022-05-25 20:51:17 +0300 |
commit | 61eccb2502064ee628d6e1983af9020ed6d1de57 (patch) | |
tree | 73d3db70df9c07f963b2902f3ea9e3769f5db9e0 /config.toml | |
parent | 487a77244226bf301d29a004c3f5601b7e6fafc6 (diff) |
feat(giscus): standardize configuration, support i18n and add lazyLoading config
Diffstat (limited to 'config.toml')
-rw-r--r-- | config.toml | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/config.toml b/config.toml index 21fa1394..e7b2d0c7 100644 --- a/config.toml +++ b/config.toml @@ -418,6 +418,8 @@ avatar = "mp" meta= "" pageSize = 10 + # automatically adapt the current theme i18n configuration when empty + # 为空时自动适配当前主题 i18n 配置 lang = "" visitor = true recordIP = true @@ -442,6 +444,8 @@ width = "100%" numPosts = 10 appId = "" + # automatically adapt the current theme i18n configuration when empty + # 为空时自动适配当前主题 i18n 配置 languageCode = "" # Telegram comments config (https://comments.app/) # Telegram comments 评论系统设置 (https://comments.app/) @@ -468,25 +472,26 @@ label = "" lightTheme = "github-light" darkTheme = "github-dark" + # giscus comment config (https://giscus.app/) + # giscus comment 评论系统设置 (https://giscus.app/zh-CN) [params.page.comment.giscus] - # To enable giscus, the github discussions based comment section, - # Follow the steps described to enable giscus and get the values - # needed to populate the below information. - # https://www.joelnitta.com/posts/2021-11-24_using-giscus/ + # You can refer to the official documentation of giscus to use the following configuration. + # 你可以参考官方文档来使用下列配置 enable = false - category = "Announcements" # Announcements, Comments - lang = "en" # 保持 en, 只需要控制每篇文章的 url 不一样即可 - repo = "" # Entering repo will enable giscus - repo_id = "" # query by GraphQL API, https://docs.github.com/en/graphql/overview/explorer - category_id = "" # query by GraphQL API, https://docs.github.com/en/graphql/overview/explorer + repo = "" + repoId = "" + category = "Announcements" + categoryId = "" + # automatically adapt the current theme i18n configuration when empty + # 为空时自动适配当前主题 i18n 配置 + lang = "" mapping = "pathname" - reactions_enabled = "0" - emit_metadata = "0" - input_position = "top" - lightTheme = "light" # github theme - darkTheme = "dark" # github theme - crossorigin = "anonymous" - label = "Comment" # Label applied to issue by utteranc.es bot + reactionsEnabled = "1" + emitMetadata = "0" + inputPosition = "bottom" + lazyLoading = false + lightTheme = "light" + darkTheme = "dark" # Third-party library config # 第三方库配置 [params.page.library] |