diff options
author | uPagge <upagge@mail.ru> | 2020-12-15 15:54:31 +0300 |
---|---|---|
committer | uPagge <upagge@mail.ru> | 2020-12-15 15:54:31 +0300 |
commit | d50b52b3327b6aee89cc61359ab221d6554d9d6d (patch) | |
tree | 11c6d6ee8b336ab05ef59dca04a2ca21048394b2 | |
parent | df2b140fa3b2349b996a12769f2f4c535c7c2c78 (diff) |
comments block config change
-rw-r--r-- | exampleSite/config.toml | 159 | ||||
-rw-r--r-- | exampleSite/content/posts/theme-documentation-basics/index.en.md | 61 |
2 files changed, 111 insertions, 109 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index c835a7e..d4b5bb8 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -322,6 +322,85 @@ enableEmoji = true # RSS 文章数目 rss = 10 + # Comment config + # 评论系统设置 + [params.comment] + enable = true + # Disqus comment config (https://disqus.com/) + # Disqus 评论系统设置 (https://disqus.com/) + [params.comment.disqus] + enable = false + # Disqus shortname to use Disqus in posts + # Disqus 的 shortname,用来在文章中启用 Disqus 评论系统 + shortname = "" + # Gitalk comment config (https://github.com/gitalk/gitalk) + # Gitalk 评论系统设置 (https://github.com/gitalk/gitalk) + [params.comment.gitalk] + enable = false + owner = "" + repo = "" + clientId = "" + clientSecret = "" + # Valine comment config (https://github.com/xCss/Valine) + # Valine 评论系统设置 (https://github.com/xCss/Valine) + [params.comment.valine] + enable = true + appId = "QGzwQXOqs5JOhN4RGPOkR2mR-MdYXbMMI" + appKey = "WBmoGyJtbqUswvfLh6L8iEBr" + placeholder = "" + avatar = "mp" + meta= "" + pageSize = 10 + lang = "" + visitor = true + recordIP = true + highlight = true + enableQQ = false + serverURLs = "https://" + # emoji data file name, default is "google.yml" + # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml") + # located in "themes/uBlogger/assets/data/emoji/" directory + # you can store your own data files in the same path under your project: + # "assets/data/emoji/" + # emoji 数据文件名称, 默认是 "google.yml" + # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml") + # 位于 "themes/uBlogger/assets/data/emoji/" 目录 + # 可以在你的项目下相同路径存放你自己的数据文件: + # "assets/data/emoji/" + emoji = "" + # Facebook comment config (https://developers.facebook.com/docs/plugins/comments) + # Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments) + [params.comment.facebook] + enable = false + width = "100%" + numPosts = 10 + appId = "" + languageCode = "" + # Telegram comments config (https://comments.app/) + # Telegram comments 评论系统设置 (https://comments.app/) + [params.comment.telegram] + enable = false + siteID = "" + limit = 5 + height = "" + color = "" + colorful = true + dislikes = false + outlined = false + # Commento comment config (https://commento.io/) + # Commento comment 评论系统设置 (https://commento.io/) + [params.comment.commento] + enable = false + # Utterances comment config (https://utteranc.es/) + # Utterances comment 评论系统设置 (https://utteranc.es/) + [params.comment.utterances] + enable = false + # owner/repo + repo = "" + issueTerm = "pathname" + label = "" + lightTheme = "github-light" + darkTheme = "github-dark" # Page config # 文章页面配置 [params.page] @@ -446,85 +525,7 @@ enableEmoji = true Skype = false Trello = false Mix = false - # Comment config - # 评论系统设置 - [params.page.comment] - enable = true - # Disqus comment config (https://disqus.com/) - # Disqus 评论系统设置 (https://disqus.com/) - [params.page.comment.disqus] - enable = false - # Disqus shortname to use Disqus in posts - # Disqus 的 shortname,用来在文章中启用 Disqus 评论系统 - shortname = "" - # Gitalk comment config (https://github.com/gitalk/gitalk) - # Gitalk 评论系统设置 (https://github.com/gitalk/gitalk) - [params.page.comment.gitalk] - enable = false - owner = "" - repo = "" - clientId = "" - clientSecret = "" - # Valine comment config (https://github.com/xCss/Valine) - # Valine 评论系统设置 (https://github.com/xCss/Valine) - [params.page.comment.valine] - enable = true - appId = "QGzwQXOqs5JOhN4RGPOkR2mR-MdYXbMMI" - appKey = "WBmoGyJtbqUswvfLh6L8iEBr" - placeholder = "" - avatar = "mp" - meta= "" - pageSize = 10 - lang = "" - visitor = true - recordIP = true - highlight = true - enableQQ = false - serverURLs = "https://" - # emoji data file name, default is "google.yml" - # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml") - # located in "themes/uBlogger/assets/data/emoji/" directory - # you can store your own data files in the same path under your project: - # "assets/data/emoji/" - # emoji 数据文件名称, 默认是 "google.yml" - # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml") - # 位于 "themes/uBlogger/assets/data/emoji/" 目录 - # 可以在你的项目下相同路径存放你自己的数据文件: - # "assets/data/emoji/" - emoji = "" - # Facebook comment config (https://developers.facebook.com/docs/plugins/comments) - # Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments) - [params.page.comment.facebook] - enable = false - width = "100%" - numPosts = 10 - appId = "" - languageCode = "" - # Telegram comments config (https://comments.app/) - # Telegram comments 评论系统设置 (https://comments.app/) - [params.page.comment.telegram] - enable = false - siteID = "" - limit = 5 - height = "" - color = "" - colorful = true - dislikes = false - outlined = false - # Commento comment config (https://commento.io/) - # Commento comment 评论系统设置 (https://commento.io/) - [params.page.comment.commento] - enable = false - # Utterances comment config (https://utteranc.es/) - # Utterances comment 评论系统设置 (https://utteranc.es/) - [params.page.comment.utterances] - enable = false - # owner/repo - repo = "" - issueTerm = "pathname" - label = "" - lightTheme = "github-light" - darkTheme = "github-dark" + # Third-party library config # 第三方库配置 [params.page.library] diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index f0022f5..385d099 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -520,12 +520,33 @@ Please open the code block below to view the complete sample configuration :(far Skype = false Trello = false Mix = false - # {{< version 0.2.0 changed >}} Comment config - [params.page.comment] + # {{< version 0.2.7 >}} Third-party library config + [params.page.library] + [params.page.library.css] + # someCSS = "some.css" + # located in "assets/" + # Or + # someCSS = "https://cdn.example.com/some.css" + [params.page.library.js] + # someJavascript = "some.js" + # located in "assets/" + # Or + # someJavascript = "https://cdn.example.com/some.js" + # {{< version 0.2.10 changed >}} Page SEO config + [params.page.seo] + # image URL + images = [] + # Publisher info + [params.page.seo.publisher] + name = "" + logoUrl = "" + + # {{< version 1.1.0 changed >}} Comment config + [params.comment] enable = true # {{< version 1.0.0 new >}} # {{< link "https://github.com/umputun/remark42/" Remark42 >}} comment config - [params.page.comment.remark42] + [params.comment.remark42] enable = false # the location of your server with Remark42 host = "https://remark.example.com" @@ -538,13 +559,13 @@ Please open the code block below to view the complete sample configuration :(far # enable or disable smiley support emailSubscribe = "true" # {{< link "https://disqus.com/" Disqus >}} comment config - [params.page.comment.disqus] + [params.comment.disqus] # {{< version 0.1.1 >}} enable = false # Disqus shortname to use Disqus in posts shortname = "" # {{< link "https://github.com/gitalk/gitalk" Gitalk >}} comment config - [params.page.comment.gitalk] + [params.comment.gitalk] # {{< version 0.1.1 >}} enable = false owner = "" @@ -552,7 +573,7 @@ Please open the code block below to view the complete sample configuration :(far clientId = "" clientSecret = "" # {{< link "https://github.com/xCss/Valine" Valine >}} comment config - [params.page.comment.valine] + [params.comment.valine] enable = false appId = "" appKey = "" @@ -573,14 +594,14 @@ Please open the code block below to view the complete sample configuration :(far # "assets/data/emoji/" emoji = "" # {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook comment" >}} config - [params.page.comment.facebook] + [params.comment.facebook] enable = false width = "100%" numPosts = 10 appId = "" languageCode = "" # {{< version 0.2.0 >}} {{< link "https://comments.app/" "Telegram comments" >}} config - [params.page.comment.telegram] + [params.comment.telegram] enable = false siteID = "" limit = 5 @@ -590,10 +611,10 @@ Please open the code block below to view the complete sample configuration :(far dislikes = false outlined = false # {{< version 0.2.0 >}} {{< link "https://commento.io/" "Commento" >}} comment config - [params.page.comment.commento] + [params.comment.commento] enable = false # {{< version 0.2.5 >}} {{< link "https://utteranc.es/" "Utterances" >}} comment config - [params.page.comment.utterances] + [params.comment.utterances] enable = false # owner/repo repo = "" @@ -601,26 +622,6 @@ Please open the code block below to view the complete sample configuration :(far label = "" lightTheme = "github-light" darkTheme = "github-dark" - # {{< version 0.2.7 >}} Third-party library config - [params.page.library] - [params.page.library.css] - # someCSS = "some.css" - # located in "assets/" - # Or - # someCSS = "https://cdn.example.com/some.css" - [params.page.library.js] - # someJavascript = "some.js" - # located in "assets/" - # Or - # someJavascript = "https://cdn.example.com/some.js" - # {{< version 0.2.10 changed >}} Page SEO config - [params.page.seo] - # image URL - images = [] - # Publisher info - [params.page.seo.publisher] - name = "" - logoUrl = "" # {{< version 0.2.5 >}} TypeIt config [params.typeit] |