diff --git a/themes/movie/components/TagItemMini.js b/themes/movie/components/TagItemMini.js
index e5d29782..a4b7da1c 100644
--- a/themes/movie/components/TagItemMini.js
+++ b/themes/movie/components/TagItemMini.js
@@ -6,9 +6,9 @@ const TagItemMini = ({ tag, selected = false }) => {
key={tag}
href={selected ? '/' : `/tag/${encodeURIComponent(tag.name)}`}
passHref
- className={'inline-block rounded-xl py-0.5 mr-2 text-[#2EBF8B]'}
+ className={'inline-block rounded-xl py-0.5 mr-2'}
>
-
+
{selected && }{' '}
{tag.name + (tag.count ? `(${tag.count})` : '')}{' '}
diff --git a/themes/movie/config.js b/themes/movie/config.js
index ad775bbd..a2c5fd4d 100644
--- a/themes/movie/config.js
+++ b/themes/movie/config.js
@@ -9,6 +9,7 @@ const CONFIG = {
MOVIE_MENU_SEARCH: true, // 显示搜索
MOVIE_ARTICLE_RECOMMEND: true, // 推荐关联内容在文章底部
+ MOVIE_VIDEO_COMBINE: true, // 聚合视频,开启后一篇文章内的多个含caption的视频会被合并到文章开头,并展示分集按钮
MOVIE_POST_LIST_COVER: true // 列表显示文章封面
}
diff --git a/themes/movie/index.js b/themes/movie/index.js
index 75e9abae..5b7f9184 100644
--- a/themes/movie/index.js
+++ b/themes/movie/index.js
@@ -64,7 +64,7 @@ const LayoutBase = props => {
{/* 主体 */}
-
+
{/* 标题栏 */}
{/* {fullWidth ? null :
} */}
@@ -223,12 +223,13 @@ const LayoutSlug = props => {
figCaptionWrapper.appendChild(div)
})
- // 将包含 figcaption 值的容器元素添加到 notion-article 的第一个子元素插入
- videoWrapper.appendChild(carouselWrapper)
+ // 条件是带有caption的视频数量大于1个,否则不处理
if (figCaptionValues.length > 1) {
+ // 将包含 figcaption 值的容器元素添加到 notion-article 的第一个子元素插入
+ videoWrapper.appendChild(carouselWrapper)
videoWrapper.appendChild(figCaptionWrapper)
+ notionArticle.insertBefore(videoWrapper, notionArticle.firstChild)
}
- notionArticle.insertBefore(videoWrapper, notionArticle.firstChild)
}
setTimeout(() => {