Skip to content

Commit

Permalink
chore: add image setting to next config and update webmention descrip…
Browse files Browse the repository at this point in the history
…tion in blog config file
  • Loading branch information
siygle committed Apr 1, 2023
1 parent 6deacc2 commit 1e307bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions blog.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ const BLOG = {
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
COMMENT_WALINE_RECENT: process.env.NEXT_PUBLIC_WALINE_RECENT || false, // 最新评论

// 此评论系统基于WebMention,细节可参考https://webmention.io
// 它是一个基于IndieWeb理念的开放式评论系统,下方COMMENT_WEBMENTION包含的属性皆需配置:
// ENABLE: 是否开启
// AUTH: Webmention使用的IndieLogin,可使用Twitter或Github个人页面连结
// HOSTNAME: Webmention绑定之网域,通常即为本站网址
// TWITTER_USERNAME: 评论显示区域需要的资讯
// TOKEN: Webmention的API token
COMMENT_WEBMENTION: {
ENABLE: process.env.NEXT_PUBLIC_WEBMENTION_ENABLE || false,
AUTH: process.env.NEXT_PUBLIC_WEBMENTION_AUTH || '',
Expand Down
3 changes: 2 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ module.exports = withBundleAnalyzer({
'avatars.githubusercontent.com',
'images.unsplash.com',
'source.unsplash.com',
'p1.qhimg.com'
'p1.qhimg.com',
'webmention.io'
]
},
// 默认将feed重定向至 /public/rss/feed.xml
Expand Down

0 comments on commit 1e307bd

Please sign in to comment.