Merge pull request #1311 from imesong/preview

feat: support blog favicon configurable,  use lcoal favicon.ico as default ,  also can use online resource
This commit is contained in:
tangly1024
2023-07-23 22:03:32 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ const BLOG = {
NOTION_HOST: process.env.NEXT_PUBLIC_NOTION_HOST || 'https://www.notion.so', // Notion域名您可以选择用自己的域名进行反向代理如果不懂得什么是反向代理请勿修改此项
BLOG_FAVICON: process.env.NEXT_PUBLIC_FAVICON || '/favicon.ico', // blog favicon 配置, 默认使用 /public/favicon.ico支持在线图片如 https://img.imesong.com/favicon.png
// 网站字体
FONT_STYLE: process.env.NEXT_PUBLIC_FONT_STYLE || 'font-sans', // ['font-serif','font-sans'] 两种可选,分别是衬线和无衬线: 参考 https://www.jianshu.com/p/55e410bd2115
FONT_URL: [

View File

@@ -13,7 +13,7 @@ class MyDocument extends Document {
return (
<Html lang={BLOG.LANG}>
<Head>
<link rel='icon' href='/favicon.ico' />
<link rel='icon' href= {`${BLOG.BLOG_FAVICON}`} />
<CommonScript />
</Head>