diff --git a/themes/heo/index.js b/themes/heo/index.js
index 7aab9758..5e7aa3ab 100644
--- a/themes/heo/index.js
+++ b/themes/heo/index.js
@@ -7,7 +7,6 @@
*/
import CONFIG from './config'
-import CommonHead from '@/components/CommonHead'
import { useEffect, useState } from 'react'
import Footer from './components/Footer'
import SideRight from './components/SideRight'
@@ -51,8 +50,7 @@ const LayoutBase = props => {
const {
children,
slotTop,
- className,
- meta
+ className
} = props
// 全屏模式下的最大宽度
@@ -90,8 +88,7 @@ const LayoutBase = props => {
id="theme-heo"
className="bg-[#f7f9fe] dark:bg-[#18171d] h-full min-h-screen flex flex-col"
>
- {/* SEO信息 */}
-
+
{/* 顶部嵌入 导航栏,首页放hero,文章页放文章详情 */}
diff --git a/themes/hexo/index.js b/themes/hexo/index.js
index 479ac17d..4015a0c7 100644
--- a/themes/hexo/index.js
+++ b/themes/hexo/index.js
@@ -1,5 +1,4 @@
import CONFIG from './config'
-import CommonHead from '@/components/CommonHead'
import { createContext, useContext, useEffect, useRef } from 'react'
import Footer from './components/Footer'
import SideRight from './components/SideRight'
@@ -45,7 +44,7 @@ export const useHexoGlobal = () => useContext(ThemeGlobalHexo)
* @constructor
*/
const LayoutBase = props => {
- const { post, children, slotTop, meta, className } = props
+ const { post, children, slotTop, className } = props
const { onLoading, fullWidth } = useGlobal()
const router = useRouter()
@@ -75,8 +74,6 @@ const LayoutBase = props => {
return (
- {/* 网页SEO */}
-
{/* 顶部导航 */}
diff --git a/themes/landing/index.js b/themes/landing/index.js
index 51bf84ff..8046f9f1 100644
--- a/themes/landing/index.js
+++ b/themes/landing/index.js
@@ -15,7 +15,6 @@ import Features from './components/Features'
import FeaturesBlocks from './components/FeaturesBlocks'
import Testimonials from './components/Testimonials'
import Newsletter from './components/Newsletter'
-import CommonHead from '@/components/CommonHead'
import { useRouter } from 'next/router'
import CONFIG from './config'
import Loading from '@/components/Loading'
@@ -30,13 +29,10 @@ import { siteConfig } from '@/lib/config'
* @returns
*/
const LayoutBase = (props) => {
- const { meta, siteInfo, children } = props
+ const { children } = props
return
- {/* 网页SEO */}
-
-
{/* 顶部导航栏 */}
diff --git a/themes/matery/index.js b/themes/matery/index.js
index a71b3872..51193157 100644
--- a/themes/matery/index.js
+++ b/themes/matery/index.js
@@ -1,5 +1,4 @@
import CONFIG from './config'
-import CommonHead from '@/components/CommonHead'
import TopNav from './components/TopNav'
import Live2D from '@/components/Live2D'
import { useGlobal } from '@/lib/global'
@@ -40,7 +39,7 @@ import { siteConfig } from '@/lib/config'
* @constructor
*/
const LayoutBase = props => {
- const { children, meta, siteInfo, post } = props
+ const { children, post } = props
const { onLoading, fullWidth } = useGlobal()
const router = useRouter()
const containerSlot = router.route === '/' ?
:
@@ -52,8 +51,7 @@ const LayoutBase = props => {
return (
- {/* SEO相关 */}
-
+
{/* 顶部导航栏 */}
diff --git a/themes/medium/index.js b/themes/medium/index.js
index 8087057c..3b2e0b90 100644
--- a/themes/medium/index.js
+++ b/themes/medium/index.js
@@ -33,7 +33,6 @@ import { Transition } from '@headlessui/react'
import { Style } from './style'
import replaceSearchResult from '@/components/Mark'
import ArticleInfo from './components/ArticleInfo'
-import CommonHead from '@/components/CommonHead'
import { siteConfig } from '@/lib/config'
// 主题全局状态
@@ -47,7 +46,7 @@ export const useMediumGlobal = () => useContext(ThemeGlobalMedium)
* @constructor
*/
const LayoutBase = props => {
- const { children, showInfoCard = true, slotRight, notice, meta } = props
+ const { children, showInfoCard = true, slotRight, notice } = props
const { locale } = useGlobal()
const router = useRouter()
const [tocVisible, changeTocVisible] = useState(false)
@@ -57,8 +56,6 @@ const LayoutBase = props => {
return (
- {/* SEO相关 */}
-
{/* CSS样式 */}
diff --git a/themes/nav/components/BlogPostItem.js b/themes/nav/components/BlogPostItem.js
index 98859178..2b65253f 100755
--- a/themes/nav/components/BlogPostItem.js
+++ b/themes/nav/components/BlogPostItem.js
@@ -26,7 +26,7 @@ const BlogPostItem = (props) => {
未分类
-
+
{group?.items?.map(post => (
))}
diff --git a/themes/nav/components/MenuItem.js b/themes/nav/components/MenuItem.js
index 1cb22812..539a9222 100644
--- a/themes/nav/components/MenuItem.js
+++ b/themes/nav/components/MenuItem.js
@@ -56,7 +56,6 @@ export const MenuItem = ({ link }) => {
// #号加标题 快速跳转到指定锚点
const sIsAnchor = sLink?.to === '#'
const sUrl = sIsAnchor ? `#${sLink.name}` : sLink.to
- console.log('slink', sLink, sUrl, sIsAnchor, sUrl)
return
diff --git a/themes/nav/index.js b/themes/nav/index.js
index 1dc87c3d..b7e8b796 100755
--- a/themes/nav/index.js
+++ b/themes/nav/index.js
@@ -24,7 +24,6 @@ import NotionPage from '@/components/NotionPage'
import { ArticleLock } from './components/ArticleLock'
import { Transition } from '@headlessui/react'
import { Style } from './style'
-import CommonHead from '@/components/CommonHead'
import BlogPostListAll from './components/BlogPostListAll'
import BlogPostCard from './components/BlogPostCard'
import Link from 'next/link'
@@ -33,6 +32,7 @@ import { MenuItem } from './components/MenuItem'
import LogoBar from './components/LogoBar'
import { siteConfig } from '@/lib/config'
import Live2D from '@/components/Live2D'
+import BlogArchiveItem from './components/BlogArchiveItem'
const WWAds = dynamic(() => import('@/components/WWAds'), { ssr: false })
@@ -47,7 +47,7 @@ export const useNavGlobal = () => useContext(ThemeGlobalNav)
* @constructor
*/
const LayoutBase = (props) => {
- const { customMenu, children, post, allNavPages, categoryOptions, slotLeft, slotTop, meta } = props
+ const { customMenu, children, post, allNavPages, categoryOptions, slotLeft, slotTop } = props
const { onLoading } = useGlobal()
const [tocVisible, changeTocVisible] = useState(false)
const [pageNavVisible, changePageNavVisible] = useState(false)
@@ -70,8 +70,6 @@ const LayoutBase = (props) => {
return (
- {/* HEAD */}
-
{/* 样式 */}
@@ -272,7 +270,14 @@ const LayoutSearch = (props) => {
* @returns
*/
const LayoutArchive = (props) => {
- return <>>
+ const { archivePosts } = props
+ return (<>
+
+ {Object.keys(archivePosts).map(archiveTitle => (
+
+ ))}
+
+ >)
}
/**
diff --git a/themes/next/index.js b/themes/next/index.js
index 6b6c69b9..26aada54 100644
--- a/themes/next/index.js
+++ b/themes/next/index.js
@@ -23,7 +23,6 @@ import Link from 'next/link'
import BlogListBar from './components/BlogListBar'
import { Style } from './style'
import replaceSearchResult from '@/components/Mark'
-import CommonHead from '@/components/CommonHead'
import { siteConfig } from '@/lib/config'
import AlgoliaSearchModal from '@/components/AlgoliaSearchModal'
import Announcement from './components/Announcement'
@@ -39,7 +38,7 @@ export const useNextGlobal = () => useContext(ThemeGlobalNext)
* @constructor
*/
const LayoutBase = (props) => {
- const { children, headerSlot, rightAreaSlot, meta, post } = props
+ const { children, headerSlot, rightAreaSlot, post } = props
const targetRef = useRef(null)
const floatButtonGroup = useRef(null)
const [showRightFloat, switchShow] = useState(false)
@@ -87,8 +86,6 @@ const LayoutBase = (props) => {
return (
- {/* SEO相关 */}
-
{/* 移动端顶部导航栏 */}
diff --git a/themes/nobelium/index.js b/themes/nobelium/index.js
index d9575aaf..64e0a905 100644
--- a/themes/nobelium/index.js
+++ b/themes/nobelium/index.js
@@ -22,7 +22,6 @@ import BlogListBar from './components/BlogListBar'
import { Transition } from '@headlessui/react'
import { Style } from './style'
import replaceSearchResult from '@/components/Mark'
-import CommonHead from '@/components/CommonHead'
import AlgoliaSearchModal from '@/components/AlgoliaSearchModal'
import { siteConfig } from '@/lib/config'
@@ -37,7 +36,7 @@ export const useNobeliumGlobal = () => useContext(ThemeGlobalNobelium)
* @constructor
*/
const LayoutBase = props => {
- const { children, post, meta } = props
+ const { children, post } = props
const fullWidth = post?.fullWidth ?? false
const { onLoading } = useGlobal()
const searchModal = useRef(null)
@@ -48,9 +47,7 @@ const LayoutBase = props => {
return (
- {/* SEO相关 */}
-
- {/* SEO相关 */}
+
{/* 顶部导航栏 */}
diff --git a/themes/plog/index.js b/themes/plog/index.js
index 017417d1..9b8b2d22 100644
--- a/themes/plog/index.js
+++ b/themes/plog/index.js
@@ -20,7 +20,6 @@ import BottomNav from './components/BottomNav'
import Modal from './components/Modal'
import { Style } from './style'
import replaceSearchResult from '@/components/Mark'
-import CommonHead from '@/components/CommonHead'
import { useRouter } from 'next/router'
// 主题全局状态
@@ -34,7 +33,7 @@ export const usePlogGlobal = () => useContext(ThemeGlobalPlog)
* @constructor
*/
const LayoutBase = props => {
- const { children, topSlot, meta } = props
+ const { children, topSlot } = props
const { onLoading } = useGlobal()
const [showModal, setShowModal] = useState(false)
const [modalContent, setModalContent] = useState(null)
@@ -55,8 +54,7 @@ const LayoutBase = props => {
return (
- {/* SEO相关 */}
-
+
{/* 移动端顶部导航栏 */}
diff --git a/themes/simple/index.js b/themes/simple/index.js
index 0ed8a5f2..8e57f3bb 100644
--- a/themes/simple/index.js
+++ b/themes/simple/index.js
@@ -27,7 +27,6 @@ const SideBar = dynamic(() => import('./components/SideBar'), { ssr: false });
const JumpToTopButton = dynamic(() => import('./components/JumpToTopButton'), { ssr: false });
const Footer = dynamic(() => import('./components/Footer'), { ssr: false });
const SearchInput = dynamic(() => import('./components/SearchInput'), { ssr: false });
-const CommonHead = dynamic(() => import('@/components/CommonHead'), { ssr: false });
const WWAds = dynamic(() => import('@/components/WWAds'), { ssr: false });
const BlogListPage = dynamic(() => import('./components/BlogListPage'), { ssr: false })
@@ -42,15 +41,14 @@ export const useSimpleGlobal = () => useContext(ThemeGlobalSimple)
* @returns
*/
const LayoutBase = props => {
- const { children, slotTop, meta } = props
+ const { children, slotTop } = props
const { onLoading, fullWidth } = useGlobal()
const searchModal = useRef(null)
return (
- {/* SEO相关 */}
-
+
{siteConfig('SIMPLE_TOP_BAR', null, CONFIG) && }