Skip to content

Commit 4d6ffad

Browse files
authored
Merge pull request tangly1024#2364 from tangly1024/feat/config-favicon
站点的favicon支持配置notion-config
2 parents 6c03068 + 799222c commit 4d6ffad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/GlobalHead.js

+3
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const GlobalHead = props => {
6060
<link rel='icon' href={favicon} />
6161
<title>{title}</title>
6262
<meta name='theme-color' content={siteConfig('BACKGROUND_DARK')} />
63+
6364
<meta
6465
name='viewport'
6566
content='width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=1.0'
@@ -91,6 +92,8 @@ const GlobalHead = props => {
9192
<meta name='twitter:description' content={description} />
9293
<meta name='twitter:title' content={title} />
9394

95+
<link rel='icon' href={`${siteConfig('BLOG_FAVICON')}`} />
96+
9497
{siteConfig('COMMENT_WEBMENTION_ENABLE') && (
9598
<>
9699
<link

pages/_document.js

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class MyDocument extends Document {
1212
return (
1313
<Html lang={BLOG.LANG}>
1414
<Head>
15-
<link rel='icon' href={`${BLOG.BLOG_FAVICON}`} />
1615
{/* 预加载字体 */}
1716
{BLOG.FONT_AWESOME && (
1817
<>

0 commit comments

Comments
 (0)