diff --git a/themes/movie/index.js b/themes/movie/index.js index af940150..88482501 100644 --- a/themes/movie/index.js +++ b/themes/movie/index.js @@ -75,7 +75,7 @@ const LayoutBase = props => { 'relative mx-auto justify-center md:flex items-start py-8 px-2' }> {/* 内容 */} -
+
{ // 创建一个新的容器元素 const videoWrapper = document.createElement('div') - videoWrapper.className = 'video-wrapper p-2 bg-gray-100 dark:bg-hexo-black-gray max-w-4xl mx-auto' + videoWrapper.className = 'video-wrapper py-1 px-3 bg-gray-100 dark:bg-white dark:text-black mx-auto' // 创建一个新的容器元素 const carouselWrapper = document.createElement('div') @@ -234,7 +234,7 @@ const LayoutSlug = props => { setTimeout(() => { combineVideo() - }, 100) + }, 2000) // 404 if (!post) { @@ -266,7 +266,7 @@ const LayoutSlug = props => { return ( <> {!lock ? ( -
+
{/* 标题 */} {/* 页面元素 */} diff --git a/themes/simple/components/NavBar.js b/themes/simple/components/NavBar.js index 0392c051..c455df2a 100644 --- a/themes/simple/components/NavBar.js +++ b/themes/simple/components/NavBar.js @@ -25,7 +25,7 @@ export default function NavBar(props) { const onKeyUp = e => { if (e.keyCode === 13) { - const search = document.getElementById('theme-simple-search').value + const search = document.getElementById('simple-search').value if (search) { router.push({ pathname: '/search/' + search }) } @@ -43,7 +43,7 @@ export default function NavBar(props) { {showSearchInput && (