diff --git a/pages/_document.js b/pages/_document.js
index c053a632..6b7daa70 100644
--- a/pages/_document.js
+++ b/pages/_document.js
@@ -17,7 +17,7 @@ class MyDocument extends Document {
-
+
diff --git a/themes/example/style.js b/themes/example/style.js
index 7a59e053..0708b7b5 100644
--- a/themes/example/style.js
+++ b/themes/example/style.js
@@ -6,9 +6,9 @@
*/
const Style = () => {
return
diff --git a/themes/fukasawa/style.js b/themes/fukasawa/style.js
index e96d8036..e730d919 100644
--- a/themes/fukasawa/style.js
+++ b/themes/fukasawa/style.js
@@ -6,11 +6,13 @@
*/
const Style = () => {
return
diff --git a/themes/heo/components/Header.js b/themes/heo/components/Header.js
index f654d230..624f8a49 100644
--- a/themes/heo/components/Header.js
+++ b/themes/heo/components/Header.js
@@ -10,7 +10,7 @@ import throttle from 'lodash.throttle'
*/
const Header = props => {
const [isOpen, changeShow] = useState(false)
- const [headerBgShow, setHeaderBgShow] = useState(false)
+ const [fixedNav, setHeaderBgShow] = useState(false)
const [whiteTitle, setWhiteTitle] = useState(false)
const toggleMenuOpen = () => {
@@ -29,15 +29,15 @@ const Header = props => {
const throttleMs = 200
/**
- * 根据滚动条,切换导航栏样式
- */
+ * 根据滚动条,切换导航栏样式
+ */
const scrollTrigger = useCallback(throttle(() => {
const scrollS = window.scrollY
const header = document.querySelector('#header')
const postHeader = document.querySelector('#post-bg')
// 导航栏设置 白色背景
- if (header && scrollS > 60) {
+ if (header && scrollS > 0) {
setHeaderBgShow(true)
setWhiteTitle(false)
} else {
@@ -50,21 +50,23 @@ const Header = props => {
return (<>
{/* 头条 */}
-