-
- return
+ return
}
/**
@@ -125,8 +121,8 @@ const LayoutIndex = (props) => {
* @returns
*/
const LayoutPostList = (props) => {
- return
-
+ return
+
{BLOG.POST_LIST_STYLE === 'page' ? : }
}
@@ -213,7 +209,7 @@ const LayoutSlug = props => {
>
return (
- } showCategory={false} showTag={false} floatSlot={floatSlot} >
+ } showCategory={false} showTag={false} floatSlot={floatSlot} >
+
{
- {/* 悬浮菜单 */}
-
-
{/* 页脚 */}
@@ -116,7 +112,7 @@ const LayoutBase = props => {
*/
const LayoutIndex = (props) => {
const headerSlot = CONFIG.HOME_BANNER_ENABLE &&
{lock && }
diff --git a/themes/hexo/components/Header.js b/themes/hexo/components/Hero.js
similarity index 100%
rename from themes/hexo/components/Header.js
rename to themes/hexo/components/Hero.js
diff --git a/themes/hexo/components/HeaderArticle.js b/themes/hexo/components/PostHeader.js
similarity index 98%
rename from themes/hexo/components/HeaderArticle.js
rename to themes/hexo/components/PostHeader.js
index b5384a1f..e383672b 100644
--- a/themes/hexo/components/HeaderArticle.js
+++ b/themes/hexo/components/PostHeader.js
@@ -4,7 +4,7 @@ import { useGlobal } from '@/lib/global'
import BLOG from '@/blog.config'
import NotionIcon from '@/components/NotionIcon'
-export default function HeaderArticle({ post, siteInfo }) {
+export default function PostHeader({ post, siteInfo }) {
const { locale } = useGlobal()
if (!post) {
diff --git a/themes/hexo/index.js b/themes/hexo/index.js
index dd4e8aa5..603c8b75 100644
--- a/themes/hexo/index.js
+++ b/themes/hexo/index.js
@@ -10,7 +10,7 @@ import BLOG from '@/blog.config'
import { isBrowser, loadExternalResource } from '@/lib/utils'
import BlogPostListPage from './components/BlogPostListPage'
import BlogPostListScroll from './components/BlogPostListScroll'
-import Hero from './components/Header'
+import Hero from './components/Hero'
import { useRouter } from 'next/router'
import Mark from 'mark.js'
import Card from './components/Card'
@@ -18,7 +18,7 @@ import RightFloatArea from './components/RightFloatArea'
import SearchNav from './components/SearchNav'
import BlogPostArchive from './components/BlogPostArchive'
import { ArticleLock } from './components/ArticleLock'
-import HeaderArticle from './components/HeaderArticle'
+import PostHeader from './components/PostHeader'
import JumpToCommentButton from './components/JumpToCommentButton'
import TocDrawer from './components/TocDrawer'
import TocDrawerButton from './components/TocDrawerButton'
@@ -213,7 +213,7 @@ const LayoutSlug = props => {
>
return (
- } showCategory={false} showTag={false} floatSlot={floatSlot} >
+ } showCategory={false} showTag={false} floatSlot={floatSlot} >
{lock && }
diff --git a/themes/matery/components/HeaderArticle.js b/themes/matery/components/PostHeader.js
similarity index 91%
rename from themes/matery/components/HeaderArticle.js
rename to themes/matery/components/PostHeader.js
index 3b9c85a1..dd58bd5f 100644
--- a/themes/matery/components/HeaderArticle.js
+++ b/themes/matery/components/PostHeader.js
@@ -1,6 +1,9 @@
import Image from 'next/image'
-export default function HeaderArticle({ post, siteInfo }) {
+/**
+ * 文章背景图
+ */
+export default function PostHeader({ post, siteInfo }) {
const headerImage = post?.pageCoverThumbnail ? post?.pageCoverThumbnail : siteInfo?.pageCover
const title = post?.title
return (
diff --git a/themes/matery/index.js b/themes/matery/index.js
index 05744dcd..7c30aefe 100644
--- a/themes/matery/index.js
+++ b/themes/matery/index.js
@@ -17,7 +17,7 @@ import Hero from './components/Hero'
import Announcement from './components/Announcement'
import CatalogWrapper from './components/CatalogWrapper'
import TagItemMiddle from './components/TagItemMiddle'
-import HeaderArticle from './components/HeaderArticle'
+import PostHeader from './components/PostHeader'
import Link from 'next/link'
import ArticleAdjacent from './components/ArticleAdjacent'
import Comment from '@/components/Comment'
@@ -177,7 +177,7 @@ const LayoutSearch = props => {
*/
const LayoutArchive = (props) => {
const { archivePosts } = props
- return } >
+ return } >
{Object.keys(archivePosts).map(archiveTitle => (
@@ -200,7 +200,7 @@ const LayoutArchive = (props) => {
const LayoutSlug = props => {
const { post, lock, validPassword } = props
- return ( } showCategory={false} showTag={false} floatRightBottom={ }>
+ return ( } showCategory={false} showTag={false} floatRightBottom={ }>
@@ -310,7 +310,7 @@ const LayoutCategoryIndex = props => {
const { categoryOptions } = props
return (
- } >
+ } >
@@ -340,7 +340,7 @@ const LayoutTagIndex = props => {
const { tagOptions } = props
const { locale } = useGlobal()
return (
- } >
+ } >
diff --git a/themes/nobelium/components/BlogPost.js b/themes/nobelium/components/BlogPost.js
index 48652cf6..91ad3bd4 100644
--- a/themes/nobelium/components/BlogPost.js
+++ b/themes/nobelium/components/BlogPost.js
@@ -23,7 +23,7 @@ const BlogPost = ({ post }) => {
)
- );
+ )
}
export default BlogPost