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

推荐订阅源

V
Vulnerabilities – Threatpost
U
Unit 42
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
F
Full Disclosure
月光博客
月光博客
Engineering at Meta
Engineering at Meta
博客园_首页
The Register - Security
The Register - Security
G
Google Developers Blog
The Cloudflare Blog
博客园 - Franky
K
Kaspersky official blog
A
Arctic Wolf
Scott Helme
Scott Helme
C
Cisco Blogs
Hugging Face - Blog
Hugging Face - Blog
C
Check Point Blog
NISL@THU
NISL@THU
AI
AI
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Vercel News
Vercel News
T
Tor Project blog
P
Privacy International News Feed
D
Docker
I
Intezer
L
LangChain Blog
P
Proofpoint News Feed
Security Latest
Security Latest
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
博客园 - 聂微东
AWS News Blog
AWS News Blog
Martin Fowler
Martin Fowler
P
Privacy & Cybersecurity Law Blog
V
V2EX
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
The Hacker News
The Hacker News
T
Tenable Blog
Blog — PlanetScale
Blog — PlanetScale
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog

Hugo - 标签 - cywhat's blog

Failed to Extract Shortcode:template for Shortcode Admonition Not Found Hugo的Loveit主题修改sitemap Site.webmanifest异常处理 如何创建自己的cdn图床地址 Loveit主题开启文章赞赏 Loveit主题的一些美化设置
Loveit开启评论功能
cywhat · 2021-10-21 · via Hugo - 标签 - 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时 该文章不可被评论

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏