+
-
{link.name}
+
{link.name}
} else {
diff --git a/components/SearchInput.js b/components/SearchInput.js
index 424a8d60..bcc09d13 100644
--- a/components/SearchInput.js
+++ b/components/SearchInput.js
@@ -42,14 +42,14 @@ const SearchInput = ({ currentTag, currentSearch }) => {
ref={searchInputRef}
type='text'
placeholder={currentTag ? `${locale.SEARCH.TAGS} #${currentTag}` : `${locale.SEARCH.ARTICLES}`}
- className={'w-full pl-2 transition font-light leading-10 border-gray-300 text-black bg-gray-100 dark:bg-gray-900 dark:text-white'}
+ className={'w-full pl-2 transition focus:shadow-lg font-light leading-10 border-gray-300 text-black bg-gray-100 dark:bg-gray-900 dark:text-white'}
onKeyUp={handleKeyUp}
onChange={e => updateSearchKey(e.target.value)}
defaultValue={currentSearch}
/>
{(searchKey && searchKey.length &&
)}
-
{ handleSearch(searchKey) }}>
diff --git a/components/SideBar.js b/components/SideBar.js
index 1fdd730f..04c1b0fb 100644
--- a/components/SideBar.js
+++ b/components/SideBar.js
@@ -42,7 +42,7 @@ const SideBar = ({ tags, currentTag, post, posts, categories, currentCategory, c
{posts && (
-
{locale.COMMON.LATEST_POSTS}
+
{locale.COMMON.LATEST_POSTS}
@@ -52,7 +52,7 @@ const SideBar = ({ tags, currentTag, post, posts, categories, currentCategory, c
{categories && (
-
{locale.COMMON.CATEGORY}
+
{locale.COMMON.CATEGORY}
{locale.COMMON.MORE}
@@ -67,7 +67,7 @@ const SideBar = ({ tags, currentTag, post, posts, categories, currentCategory, c
{tags && (
-
{locale.COMMON.TAGS}
+
{locale.COMMON.TAGS}
{locale.COMMON.MORE}
diff --git a/pages/_app.js b/pages/_app.js
index 92fbd3a1..f07873aa 100644
--- a/pages/_app.js
+++ b/pages/_app.js
@@ -6,6 +6,10 @@ import 'animate.css'
import BLOG from 'blog.config'
import dynamic from 'next/dynamic'
import { GlobalContextProvider } from '@/lib/global'
+// 解决React-FontAwesome图标问题
+import { config } from '@fortawesome/fontawesome-svg-core'
+import '@fortawesome/fontawesome-svg-core/styles.css'
+config.autoAddCss = false
const Ackee = dynamic(() => import('@/components/Ackee'), { ssr: false })
const Gtag = dynamic(() => import('@/components/Gtag'), { ssr: false })