+ return
@@ -43,12 +44,17 @@ function AsideLeft (props) {
+
+
+
}
diff --git a/themes/fukasawa/components/Card.js b/themes/fukasawa/components/Card.js
index 890aadf9..5bc925e7 100644
--- a/themes/fukasawa/components/Card.js
+++ b/themes/fukasawa/components/Card.js
@@ -1,7 +1,7 @@
const Card = ({ children, headerSlot, className }) => {
return
<>{headerSlot}>
-
diff --git a/themes/fukasawa/components/Collapse.js b/themes/fukasawa/components/Collapse.js
deleted file mode 100644
index 7607b732..00000000
--- a/themes/fukasawa/components/Collapse.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { useEffect, useRef } from 'react'
-
-const Collapse = props => {
- const collapseRef = useRef(null)
- const collapseSection = element => {
- const sectionHeight = element.scrollHeight
- requestAnimationFrame(function () {
- element.style.height = sectionHeight + 'px'
- requestAnimationFrame(function () {
- element.style.height = 0 + 'px'
- })
- })
- }
- const expandSection = element => {
- const sectionHeight = element.scrollHeight
- element.style.height = sectionHeight + 'px'
- const clearTime = setTimeout(() => {
- element.style.height = 'auto'
- }, 400)
- clearTimeout(clearTime)
- }
- useEffect(() => {
- const element = collapseRef.current
- if (props.isOpen) {
- expandSection(element)
- } else {
- collapseSection(element)
- }
- }, [props.isOpen])
- return (
-
- {props.children}
-
- )
-}
-Collapse.defaultProps = { isOpen: false }
-
-export default Collapse
diff --git a/themes/fukasawa/components/SearchInput.js b/themes/fukasawa/components/SearchInput.js
index 2dcce9ac..2d54b6bc 100644
--- a/themes/fukasawa/components/SearchInput.js
+++ b/themes/fukasawa/components/SearchInput.js
@@ -53,7 +53,7 @@ const SearchInput = ({ currentTag, currentSearch, cRef }) => {
{
{/* 导航栏 */}
-
+
@@ -36,8 +36,8 @@ const TopNav = props => {
{/* 右侧功能 */}
-
- 菜单 {isOpen ?
:
}
+
+ {isOpen ? : }
diff --git a/themes/hexo/components/Footer.js b/themes/hexo/components/Footer.js
index 1a30536f..8ed3fcc3 100644
--- a/themes/hexo/components/Footer.js
+++ b/themes/hexo/components/Footer.js
@@ -1,5 +1,6 @@
import React from 'react'
import BLOG from '@/blog.config'
+import DarkModeButton from '@/components/DarkModeButton'
const Footer = ({ title }) => {
const d = new Date()
@@ -9,6 +10,8 @@ const Footer = ({ title }) => {