@@ -44,6 +44,10 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
{post.title}
+
+ {post?.summary}
+
+
diff --git a/themes/movie/components/PaginationNumber.js b/themes/movie/components/PaginationNumber.js
index 54c1bf34..effc1835 100644
--- a/themes/movie/components/PaginationNumber.js
+++ b/themes/movie/components/PaginationNumber.js
@@ -13,6 +13,7 @@ import { useState } from 'react'
*/
const PaginationNumber = ({ page, totalPage }) => {
const router = useRouter()
+ const [value, setValue] = useState('')
const { locale } = useGlobal()
const currentPage = +page
const showNext = page < totalPage
@@ -22,8 +23,9 @@ const PaginationNumber = ({ page, totalPage }) => {
.replace(/\/page\/[1-9]\d*/, '')
.replace(/\/$/, '')
const pages = generatePages(pagePrefix, page, currentPage, totalPage)
-
- const [value, setValue] = useState('')
+ if (pages?.length <= 1) {
+ return <>>
+ }
const handleInputChange = event => {
const newValue = event.target.value.replace(/[^0-9]/g, '')
diff --git a/themes/movie/components/SlotBar.js b/themes/movie/components/SlotBar.js
new file mode 100644
index 00000000..e3bed727
--- /dev/null
+++ b/themes/movie/components/SlotBar.js
@@ -0,0 +1,34 @@
+import { useGlobal } from '@/lib/global'
+
+/**
+ * 博客列表上方嵌入条
+ * @param {*} props
+ * @returns
+ */
+export default function SlotBar(props) {
+ const { tag, category } = props
+ const { locale } = useGlobal()
+
+ if (tag) {
+ return (
+
+
+
+ {locale.COMMON.TAGS} : {tag}{' '}
+
+
+
+
+ )
+ } else if (category) {
+ return (
+
+
+ {locale.COMMON.CATEGORY} : {category}
+
+
+
+ )
+ }
+ return <>>
+}
diff --git a/themes/movie/index.js b/themes/movie/index.js
index e34f0e83..4b114d37 100644
--- a/themes/movie/index.js
+++ b/themes/movie/index.js
@@ -7,6 +7,7 @@ import NotionPage from '@/components/NotionPage'
import ShareBar from '@/components/ShareBar'
import { siteConfig } from '@/lib/config'
import { useGlobal } from '@/lib/global'
+import { loadWowJS } from '@/lib/plugins/wow'
import { isBrowser } from '@/lib/utils'
import { Transition } from '@headlessui/react'
import { useRouter } from 'next/router'
@@ -23,6 +24,7 @@ import { Footer } from './components/Footer'
import { Header } from './components/Header'
import JumpToTopButton from './components/JumpToTopButton'
import LatestPostsGroup from './components/LatestPostsGroup'
+import SlotBar from './components/SlotBar'
import TagGroups from './components/TagGroups'
import TagItem from './components/TagItem'
import CONFIG from './config'
@@ -46,6 +48,9 @@ const LayoutBase = props => {
const searchModal = useRef(null)
const [expandMenu, updateExpandMenu] = useState(false)
+ useEffect(() => {
+ loadWowJS()
+ }, [])
return (
@@ -118,7 +123,12 @@ const LayoutIndex = props => {
* @returns
*/
const LayoutPostList = props => {
- return <>{siteConfig('POST_LIST_STYLE') === 'page' ? : }>
+ return (
+ <>
+
+ {siteConfig('POST_LIST_STYLE') === 'page' ? : }
+ >
+ )
}
/**
@@ -149,18 +159,20 @@ const LayoutSlug = props => {
}, [post])
return (
<>
- {!lock
- ? (
+ {!lock ? (
+ {/* 标题 */}
+ {/* 页面元素 */}
+ {/* 分享栏目 */}
+ {/* 评论区 */}
- )
- : (
+ ) : (
- )}
+ )}
>
)
}