惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

Loveit - 分类 - cywhat's blog

Hugo的Loveit主题修改sitemap Loveit主题开启文章赞赏 Loveit主题的一些美化设置
Loveit开启评论功能
cywhat · 2021-10-21 · via Loveit - 分类 - cywhat's blog

小tips

该文章仅仅针对Loveit主题有效,其他自己尝试。

Loveit开启评论

loveit自带的有valine的配置,我们需要先注册一些要用到的信息

1.注册Leancloud

评论系统依赖于 leancloud,所以需要先在leancloud中进行相关的准备工作。

登录 或 注册 LeanCloud(国际版) 必须验证邮箱和手机号

成功后,进入后台点击左上角的创建应用:

/img/img21.png

/img/img22.png

/img/img23.png

2.域名绑定

/img/img24.png

3.绑定安全域名

设置–安全中心–web安全域名

/img/img40.png

4.修改配置

config.toml中找到 valine 将需要内容加入

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
[params.page.comment.valine]
        enable = true                                       # true为开启 false为关闭
        appId = "XWDPvzYoXXXXXGqOm-MdYXbMMI"                # 需要更换为自己的
        appKey = "U3pRXXXXXSADAXAaAaoRQ"                    # 需要更换为自己的
        placeholder = "说点什么吧"
        avatar = "mp"
        meta= ""
        pageSize = 10
        lang = ""
        visitor = true
        recordIP = true
        highlight = true
        enableQQ = false
        serverURLs = "https://mukjinfv.api.lncldglobal.com" # URL不需要替换

注意

如果不希望该文章被评论,在title加入字段 comment 且值为 false 即可

1
2
3
4
title: "关于"
date: 2021-10-19T22:01:44+08:00
reward: false
comment: false                                # comment为false时 该文章不可被评论

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏