Skip to content

Commit 1e307bd

Browse files
committed
chore: add image setting to next config and update webmention description in blog config file
1 parent 6deacc2 commit 1e307bd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

blog.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ const BLOG = {
177177
COMMENT_WALINE_SERVER_URL: process.env.NEXT_PUBLIC_WALINE_SERVER_URL || '', // 请配置完整的Waline评论地址 例如 hhttps://preview-waline.tangly1024.com @see https://waline.js.org/guide/get-started.html
178178
COMMENT_WALINE_RECENT: process.env.NEXT_PUBLIC_WALINE_RECENT || false, // 最新评论
179179

180+
// 此评论系统基于WebMention,细节可参考https://webmention.io
181+
// 它是一个基于IndieWeb理念的开放式评论系统,下方COMMENT_WEBMENTION包含的属性皆需配置:
182+
// ENABLE: 是否开启
183+
// AUTH: Webmention使用的IndieLogin,可使用Twitter或Github个人页面连结
184+
// HOSTNAME: Webmention绑定之网域,通常即为本站网址
185+
// TWITTER_USERNAME: 评论显示区域需要的资讯
186+
// TOKEN: Webmention的API token
180187
COMMENT_WEBMENTION: {
181188
ENABLE: process.env.NEXT_PUBLIC_WEBMENTION_ENABLE || false,
182189
AUTH: process.env.NEXT_PUBLIC_WEBMENTION_AUTH || '',

next.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ module.exports = withBundleAnalyzer({
1313
'avatars.githubusercontent.com',
1414
'images.unsplash.com',
1515
'source.unsplash.com',
16-
'p1.qhimg.com'
16+
'p1.qhimg.com',
17+
'webmention.io'
1718
]
1819
},
1920
// 默认将feed重定向至 /public/rss/feed.xml

0 commit comments

Comments
 (0)