Skip to content

Commit

Permalink
Merge pull request tangly1024#2364 from tangly1024/feat/config-favicon
Browse files Browse the repository at this point in the history
站点的favicon支持配置notion-config
  • Loading branch information
tangly1024 authored May 1, 2024
2 parents 6c03068 + 799222c commit 4d6ffad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/GlobalHead.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const GlobalHead = props => {
<link rel='icon' href={favicon} />
<title>{title}</title>
<meta name='theme-color' content={siteConfig('BACKGROUND_DARK')} />

<meta
name='viewport'
content='width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=1.0'
Expand Down Expand Up @@ -91,6 +92,8 @@ const GlobalHead = props => {
<meta name='twitter:description' content={description} />
<meta name='twitter:title' content={title} />

<link rel='icon' href={`${siteConfig('BLOG_FAVICON')}`} />

{siteConfig('COMMENT_WEBMENTION_ENABLE') && (
<>
<link
Expand Down
1 change: 0 additions & 1 deletion pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class MyDocument extends Document {
return (
<Html lang={BLOG.LANG}>
<Head>
<link rel='icon' href={`${BLOG.BLOG_FAVICON}`} />
{/* 预加载字体 */}
{BLOG.FONT_AWESOME && (
<>
Expand Down

0 comments on commit 4d6ffad

Please sign in to comment.