当前位置:网站首页>Blog Building III: comment system selection
Blog Building III: comment system selection
2022-07-23 12:34:00 【King who personally patrols the mountain】
Because of the Internet , Depending on GitHub Of gitment and gitalk The effect of using the comment system is not ideal , The following uses Valine Comment framework , At the end of the article is attached gitment and gital Configuration method of .
Valine Comment on system configuration
register LeanCloud
Address :https://leancloud.cn/
To configure LeanCloud
Create a new app



Copy App ID and App Key
Click Settings > Security Center Add your blog URL to the Security Center , Ensure the security of data call .

Modify the configuration file
In the theme themes There are theme configuration files provided by a third party under the directory \themes\next_config.yml
Open theme profile add to appid and appkey:
# Multiple Comment System Support
comments:
# Available values: tabs | buttons
style: tabs
# Choose a comment system to be displayed by default.
# Available values: changyan | disqus | disqusjs | gitalk | livere | valine
active: gitalk
# Setting `true` means remembering the comment system selected by the visitor.
storage: true
# Lazyload all comment systems.
lazyload: false
# Modify texts or order for any navs, here are some examples.
nav:
valine:
#gitment:
#gitalk:
order: -1
# Valine
valine:
enable: true
appid: rhS1TWjCwvxj9w6rJwsqyAKK-gzGzoHsz # Your leancloud application appid
appkey: ez9QTNyYE6XgmWP7A7xlkb7k # Your leancloud application appkey
notify: false # Mail notifier
verify: false # Verification code
placeholder: Just go go # Comment box placeholder
avatar: mm # Gravatar style
guest_info: nick,mail,link # Custom comment header
pageSize: 10 # Pagination size
language: zh-CN # Language, available values: en, zh-cn
visitor: true # Article reading statistic
comment_count: true # If false, comment count will only be displayed in post page, not in home page
recordIP: false # Whether to record the commenter IP
serverURLs: # When the custom domain name is enabled, fill it in here (it will be detected automatically by default, no need to fill in)
#post_meta_order: 0
design sketch

The yellow line drawing area can be customized , No account registration .
gitment and gitalk Configuration method of
# Gitalk
# For more information: https://gitalk.github.io, https://github.com/gitalk/gitalk
gitalk:
enable: false
github_id: https://github.com/c2h5oc2h5 # GitHub repo owner
repo: changyan # Repository name to store issues
client_id: f746246d77ace376eeaa # GitHub Application Client ID
client_secret: 4c3b254274da2db241ff98c55ecf865bb67e25e4 # GitHub Application Client Secret
admin_user: c2h5oc2h5 # GitHub repo owner and collaborators, only these guys can initialize gitHub issues
distraction_free_mode: false # Facebook-like distraction free mode
# Gitalk's display language depends on user's browser or system environment
# If you want everyone visiting your site to see a uniform language, you can set a force language value
# Available values: en | es-ES | fr | ru | zh-CN | zh-TW
language: zh-CN
# gitment Out of commission
gitment:
enable: false
mint: true
count: true
lazy: false
# Comment lazy loading , If true, By default, comments are not displayed , Click the button to view the comments
cleanly: false
language: zh-CN
github_user: c2h5oc2h5
# github name
github_repo: changyan
# In the previous step, create a new warehouse name for storing comments
client_id: f746246d77ace376eeaa
# The above registration OAuth Application Of Client ID
client_secret: 4c3b254274da2db241ff98c55ecf865bb67e25e4
# The above registration OAuth Application Applied Client Secret
proxy_gateway:
redirect_protocol: # Protocol of redirect_uri with force_redirect_protocol when mint
边栏推荐
- 博客搭建四:将自己的博客加入百度和谷歌收录的方法
- ARM架构与编程4--串口(基于百问网ARM架构与编程教程视频)
- Analyze the pre integration of vio with less rigorous but logical mathematical theory
- Use pyod to detect outliers
- 利用or-tools来求解带容量限制的路径规划问题(CVRP)
- 高电压技术复习资料
- Object based - two classic classes
- A comprehensive and detailed summary of the basic principles of steel structure
- 对字符串函数的使用和理解(2)
- Data analysis of time series (III): decomposition of classical time series
猜你喜欢

Question bank of basic principles of steel structure

Integrate all lvgl controls into one project (lvgl6.0 version)

编码器的一点理解

Interpretation of the paper: develop and verify the deep learning system to classify the etiology of macular hole and predict the anatomical results

ARM架构与编程2--ARM架构(基于百问网ARM架构与编程教程视频)

钢结构基本原理复习
![[CAN总线的物理层 ]1.CAN/CANFD采样的点的内容分享](/img/e4/0b709a6ed5e639a75e0506f6eac9fd.png)
[CAN总线的物理层 ]1.CAN/CANFD采样的点的内容分享

高电压技术复习资料

【AUTOSAR COM 3.信号的收发流程TX/RX】

Use steps of Charles' packet capturing
随机推荐
Knowledge structure of advanced algebra
单片机学习笔记4--GPIO(基于百问网STM32F103系列教程)
ARM架构与编程2--ARM架构(基于百问网ARM架构与编程教程视频)
(1)ASIO
Importance of data analysis
高分子合成工艺学
Analysis of 100 questions and answers in Higher Algebra
Data analysis of time series (III): decomposition of classical time series
嵌入式从入门到精通(入土)——超详细知识点分享2
Practical convolution correlation trick
NLP natural language processing - Introduction to machine learning and natural language processing (2)
Data analysis (I)
Deep convolution generation countermeasure network
博客搭建六:绑定自己域名的方法
单片机学习笔记8--按键和外部中断(基于百问网STM32F103系列教程)
博客搭建一:框架选择
[talent column] can't you use Apache dolphin scheduler? It takes a month to write the most comprehensive introductory teaching [2]
Object based - two classic classes
Data analysis of time series (I): main components
高分子物理考研概念及要点、考点总结