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

推荐订阅源

cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
CERT Recently Published Vulnerability Notes
V
Vulnerabilities – Threatpost
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
Schneier on Security
Schneier on Security
T
Threatpost
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
T
Threat Research - Cisco Blogs
罗磊的独立博客
Security Latest
Security Latest
D
Docker
S
Secure Thoughts
博客园 - 聂微东
A
Arctic Wolf
Recorded Future
Recorded Future
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
P
Palo Alto Networks Blog
Project Zero
Project Zero
Blog — PlanetScale
Blog — PlanetScale
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
T
The Blog of Author Tim Ferriss
Latest news
Latest news
AWS News Blog
AWS News Blog
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
Know Your Adversary
Know Your Adversary
Vercel News
Vercel News
WordPress大学
WordPress大学
Spread Privacy
Spread Privacy
F
Full Disclosure
Martin Fowler
Martin Fowler
T
The Exploit Database - CXSecurity.com
Attack and Defense Labs
Attack and Defense Labs
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
V
V2EX
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
小众软件
小众软件
宝玉的分享
宝玉的分享

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时 该文章不可被评论

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏