From b5bfdcba4be2d9de00a2541ac623624e9afe457f Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Tue, 30 Jan 2024 18:05:37 +0800 Subject: [PATCH] =?UTF-8?q?theme=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/_document.js | 1 + themes/gitbook/index.js | 4 +- themes/hexo/index.js | 51 ++++++++++++----------- themes/landing/index.js | 21 +++++----- themes/matery/index.js | 38 +++++++++-------- themes/medium/index.js | 29 ++++++------- themes/nav/components/MenuItem.js | 4 +- themes/nav/index.js | 30 ++++++------- themes/next/components/Card.js | 19 +++++---- themes/next/index.js | 50 +++++++++++----------- themes/nobelium/components/BlogListBar.js | 3 +- themes/nobelium/index.js | 45 ++++++++++---------- themes/plog/components/BlogListBar.js | 39 ----------------- themes/plog/components/Modal.js | 3 +- themes/plog/index.js | 24 +++++------ themes/simple/index.js | 24 +++++------ 16 files changed, 180 insertions(+), 205 deletions(-) delete mode 100644 themes/plog/components/BlogListBar.js diff --git a/pages/_document.js b/pages/_document.js index 976a45fb..96c999c3 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -20,6 +20,7 @@ class MyDocument extends Document { } {BLOG.FONT_URL?.map((fontUrl, index) => { + console.log(fontUrl) if (fontUrl.endsWith('.css')) { return } else { diff --git a/themes/gitbook/index.js b/themes/gitbook/index.js index 69aeca1a..ccef346b 100644 --- a/themes/gitbook/index.js +++ b/themes/gitbook/index.js @@ -325,7 +325,7 @@ const LayoutTagIndex = (props) => { const { tagOptions } = props const { locale } = useGlobal() - return
+ return <>
@@ -341,7 +341,7 @@ const LayoutTagIndex = (props) => { })}
-
+ } export { diff --git a/themes/hexo/index.js b/themes/hexo/index.js index 3664a2a7..18a7daf2 100644 --- a/themes/hexo/index.js +++ b/themes/hexo/index.js @@ -46,12 +46,25 @@ export const useHexoGlobal = () => useContext(ThemeGlobalHexo) * @constructor */ const LayoutBase = props => { - const { children, floatSlot, slotTop, meta, className } = props + const { post , children, slotTop, meta, className } = props const { onLoading, fullWidth } = useGlobal() const router = useRouter() - const headerSlot = router.route==='/' && siteConfig('HEXO_HOME_BANNER_ENABLE', null, CONFIG) ? : null + const headerSlot = post + ? : (router.route==='/' && siteConfig('HEXO_HOME_BANNER_ENABLE', null, CONFIG) + ? : null) + const floatSlot = <> + {post?.toc?.length > 1 &&
+ { + drawerRight?.current?.handleSwitchVisible() + }} + /> +
} + + + // Algolia搜索框 const searchModal = useRef(null) @@ -137,7 +150,7 @@ const LayoutIndex = (props) => { * @returns */ const LayoutPostList = (props) => { - return
+ return
{siteConfig('POST_LIST_STYLE') === 'page' ? : }
@@ -167,7 +180,7 @@ const LayoutSearch = props => { }) return ( -
+
{!currentSearch ? :
{siteConfig('POST_LIST_STYLE') === 'page' ? : }
} @@ -182,7 +195,7 @@ const LayoutSearch = props => { */ const LayoutArchive = (props) => { const { archivePosts } = props - return
+ return
{Object.keys(archivePosts).map(archiveTitle => ( @@ -205,22 +218,10 @@ const LayoutArchive = (props) => { const LayoutSlug = props => { const { post, lock, validPassword } = props const drawerRight = useRef(null) - - const targetRef = isBrowser ? document.getElementById('article-wrapper') : null - - const floatSlot = <> - {post?.toc?.length > 1 &&
- { - drawerRight?.current?.handleSwitchVisible() - }} - /> -
} - - + const tocRef = isBrowser ? document.getElementById('article-wrapper') : null return ( -
} showCategory={false} showTag={false} floatSlot={floatSlot} > + <>
{lock && } @@ -252,10 +253,10 @@ const LayoutSlug = props => {
- +
-
+ ) } @@ -280,7 +281,7 @@ const Layout404 = props => { }, 3000) }) return ( -
+ <>

@@ -291,7 +292,7 @@ const Layout404 = props => {

-
+ ) } @@ -304,7 +305,7 @@ const LayoutCategoryIndex = props => { const { categoryOptions } = props const { locale } = useGlobal() return ( -
+
{locale.COMMON.CATEGORY}: @@ -334,7 +335,7 @@ const LayoutTagIndex = props => { const { tagOptions } = props const { locale } = useGlobal() return ( -
+
{locale.COMMON.TAGS}: diff --git a/themes/landing/index.js b/themes/landing/index.js index 86ef856d..51bf84ff 100644 --- a/themes/landing/index.js +++ b/themes/landing/index.js @@ -57,13 +57,13 @@ const LayoutBase = (props) => { */ const LayoutIndex = (props) => { return ( -
+ <> -
+ ) } @@ -81,21 +81,20 @@ const LayoutSlug = (props) => { return
} - return
- + return <>
-
+ } // 其他布局暂时留空 -const LayoutSearch = (props) =>
-const LayoutArchive = (props) =>
-const Layout404 = (props) =>
-const LayoutCategoryIndex = (props) =>
-const LayoutPostList = (props) =>
-const LayoutTagIndex = (props) =>
+const LayoutSearch = (props) => <> +const LayoutArchive = (props) => <> +const Layout404 = (props) => <> +const LayoutCategoryIndex = (props) => <> +const LayoutPostList = (props) => <> +const LayoutTagIndex = (props) => <> export { CONFIG as THEME_CONFIG, diff --git a/themes/matery/index.js b/themes/matery/index.js index 80ed61ee..ce099cd7 100644 --- a/themes/matery/index.js +++ b/themes/matery/index.js @@ -44,7 +44,10 @@ const LayoutBase = props => { const { onLoading, fullWidth } = useGlobal() const router = useRouter() const containerSlot= router.route==='/' ? : - const headerSlot= siteConfig('MATERY_HOME_BANNER_ENABLE', null, CONFIG) && router.route==='/' ? : null + const headerSlot= siteConfig('MATERY_HOME_BANNER_ENABLE', null, CONFIG) && router.route==='/' + ? : (post && !fullWidth ? : null) + + const floatRightBottom = post ? : null return (
@@ -61,7 +64,7 @@ const LayoutBase = props => { appear={true} enter="transition ease-in-out duration-700 transform order-first" enterFrom="opacity-0 -translate-y-16" - enterTo="opacity-100" + enterTo="opacity-100 w-full" leave="transition ease-in-out duration-300 transform" leaveFrom="opacity-100 translate-y-0" leaveTo="opacity-0 translate-y-16" @@ -82,7 +85,7 @@ const LayoutBase = props => { appear={true} enter="transition ease-in-out duration-700 transform order-first" enterFrom="opacity-0 translate-y-16" - enterTo="opacity-100" + enterTo="opacity-100 w-full" leave="transition ease-in-out duration-300 transform" leaveFrom="opacity-100 translate-y-0" leaveTo="opacity-0 -translate-y-16" @@ -101,7 +104,7 @@ const LayoutBase = props => {
{/* 右下角悬浮 */} - + {/* 页脚 */}
@@ -155,13 +158,13 @@ const LayoutSearch = props => { } }) return ( -
+ <> {!currentSearch ? :
{siteConfig('POST_LIST_STYLE') === 'page' ? : }
} -
+ ) } @@ -172,7 +175,7 @@ const LayoutSearch = props => { */ const LayoutArchive = (props) => { const { archivePosts } = props - return
} > + return <>
{Object.keys(archivePosts).map(archiveTitle => ( @@ -184,7 +187,7 @@ const LayoutArchive = (props) => { ))}
-
+ } /** @@ -195,9 +198,8 @@ const LayoutArchive = (props) => { const LayoutSlug = props => { const { post, lock, validPassword } = props const { fullWidth } = useGlobal() - const headerSlot = fullWidth ? null : - - return (
}> + + return (<>
@@ -260,7 +262,7 @@ const LayoutSlug = props => {
-
+ ) } @@ -283,7 +285,7 @@ const Layout404 = props => { }, 3000) }) return ( -
+ <>

@@ -294,7 +296,7 @@ const Layout404 = props => {

-
+ ) } @@ -307,7 +309,7 @@ const LayoutCategoryIndex = props => { const { categoryOptions } = props return ( -
} > + <>
@@ -324,7 +326,7 @@ const LayoutCategoryIndex = props => {
-
+ ) } @@ -337,7 +339,7 @@ const LayoutTagIndex = props => { const { tagOptions } = props const { locale } = useGlobal() return ( -
} > + <>
@@ -357,7 +359,7 @@ const LayoutTagIndex = props => {
-
+ ) } diff --git a/themes/medium/index.js b/themes/medium/index.js index cb6bf541..8087057c 100644 --- a/themes/medium/index.js +++ b/themes/medium/index.js @@ -47,12 +47,14 @@ export const useMediumGlobal = () => useContext(ThemeGlobalMedium) * @constructor */ const LayoutBase = props => { - const { children, showInfoCard = true, slotRight, slotTop, notice, meta } = props + const { children, showInfoCard = true, slotRight, notice, meta } = props const { locale } = useGlobal() const router = useRouter() const [tocVisible, changeTocVisible] = useState(false) const { onLoading, fullWidth } = useGlobal() + const slotTop = + return ( {/* SEO相关 */} @@ -137,10 +139,9 @@ const LayoutIndex = (props) => { * @returns */ const LayoutPostList = (props) => { - const slotTop = - return
+ return <> {siteConfig('POST_LIST_STYLE') === 'page' ? : } -
+ } /** @@ -220,7 +221,7 @@ const LayoutSearch = (props) => { } }, []) - return
+ return <> {/* 搜索导航栏 */}
@@ -236,7 +237,7 @@ const LayoutSearch = (props) => { {currentSearch &&
{siteConfig('POST_LIST_STYLE') === 'page' ? : }
} -
+ } /** @@ -247,12 +248,12 @@ const LayoutSearch = (props) => { const LayoutArchive = props => { const { archivePosts } = props return ( -
+ <>
{Object.keys(archivePosts)?.map(archiveTitle => )}
-
+ ) } @@ -262,9 +263,9 @@ const LayoutArchive = props => { * @returns */ const Layout404 = props => { - return
+ return <>
404 Not found.
-
+ } /** @@ -276,7 +277,7 @@ const LayoutCategoryIndex = (props) => { const { categoryOptions } = props const { locale } = useGlobal() return ( -
+ <>
{locale.COMMON.CATEGORY}: @@ -298,7 +299,7 @@ const LayoutCategoryIndex = (props) => { })}
-
+ ) } @@ -311,7 +312,7 @@ const LayoutTagIndex = props => { const { tagOptions } = props const { locale } = useGlobal() return ( -
+ <>
@@ -327,7 +328,7 @@ const LayoutTagIndex = props => { })}
-
+ ) } diff --git a/themes/nav/components/MenuItem.js b/themes/nav/components/MenuItem.js index 9eeb5ecf..84d2a42e 100644 --- a/themes/nav/components/MenuItem.js +++ b/themes/nav/components/MenuItem.js @@ -50,9 +50,9 @@ export const MenuItem = ({ link }) => { { link?.subMenus?.map((sLink, index) => ( )) } diff --git a/themes/nav/index.js b/themes/nav/index.js index 9c98dab2..bf6e4662 100755 --- a/themes/nav/index.js +++ b/themes/nav/index.js @@ -172,10 +172,10 @@ const LayoutPostListIndex = props => { // const { customMenu, children, post, allNavPages, categoryOptions, slotLeft, slotRight, slotTop, meta } = props // const [filteredNavPages, setFilteredNavPages] = useState(allNavPages) return ( -
+ <> -
+ ) } @@ -189,7 +189,7 @@ const LayoutPostList = props => { // 顶部如果是按照分类或标签查看文章列表,列表顶部嵌入一个横幅 // 如果是搜索,则列表顶部嵌入 搜索框 return ( -
+ <>
{posts?.map(post => ( @@ -197,7 +197,7 @@ const LayoutPostList = props => { ))}
-
+ ) } @@ -210,7 +210,7 @@ const LayoutSlug = (props) => { const { post, lock, validPassword } = props return ( -
+ <> {/* 文章锁 */} {lock && } @@ -244,7 +244,7 @@ const LayoutSlug = (props) => {
} -
+ ) } @@ -255,7 +255,7 @@ const LayoutSlug = (props) => { * @returns */ const LayoutSearch = (props) => { - return
+ return <> } /** @@ -267,20 +267,20 @@ const LayoutSearch = (props) => { const LayoutArchive = (props) => { const { archivePosts } = props - return
+ return <>
{Object.keys(archivePosts)?.map(archiveTitle => )}
-
+ } /** * 404 */ const Layout404 = props => { - return
+ return <>
404 Not found.
-
+ } /** @@ -289,7 +289,7 @@ const Layout404 = props => { const LayoutCategoryIndex = (props) => { const { categoryOptions } = props const { locale } = useGlobal() - return
+ return <>
{locale.COMMON.CATEGORY}: @@ -311,7 +311,7 @@ const LayoutCategoryIndex = (props) => { })}
-
+ } /** @@ -321,7 +321,7 @@ const LayoutTagIndex = (props) => { const { tagOptions } = props const { locale } = useGlobal() - return
+ return <>
@@ -337,7 +337,7 @@ const LayoutTagIndex = (props) => { })}
-
+ } export { diff --git a/themes/next/components/Card.js b/themes/next/components/Card.js index a1c507b6..de70f580 100644 --- a/themes/next/components/Card.js +++ b/themes/next/components/Card.js @@ -1,10 +1,15 @@ +/** + * 卡片组件 + * @param {*} param0 + * @returns + */ const Card = (props) => { - const { children, headerSlot } = props - return
- <>{headerSlot} -
- {children} -
-
+ const { children, headerSlot, className } = props + return
+ <>{headerSlot} +
+ {children} +
+
} export default Card diff --git a/themes/next/index.js b/themes/next/index.js index 0203b749..35a6091a 100644 --- a/themes/next/index.js +++ b/themes/next/index.js @@ -33,7 +33,7 @@ import { siteConfig } from '@/lib/config' * @constructor */ const LayoutBase = (props) => { - const { children, headerSlot, floatSlot, rightAreaSlot, meta } = props + const { children, headerSlot, rightAreaSlot, meta, post } = props const { onLoading } = useGlobal() const targetRef = useRef(null) const floatButtonGroup = useRef(null) @@ -67,6 +67,15 @@ const LayoutBase = (props) => { return () => document.removeEventListener('scroll', scrollListener) }, [showRightFloat]) + // 悬浮抽屉 + const drawerRight = useRef(null) + const floatSlot =
+ { + drawerRight?.current?.handleSwitchVisible() + }} /> +
+ const tocRef = isBrowser ? document.getElementById('article-wrapper') : null + return (
{/* SEO相关 */} @@ -105,8 +114,14 @@ const LayoutBase = (props) => { {/* 右侧栏样式 */} {siteConfig('NEXT_RIGHT_BAR', null, CONFIG) && } + + {/* 悬浮目录按钮 */} + {post &&
+ +
} + {/* 右下角悬浮 */}
@@ -139,7 +154,7 @@ const LayoutIndex = (props) => { * @returns */ const LayoutPostList = (props) => { - return
+ return <> @@ -147,7 +162,7 @@ const LayoutPostList = (props) => { ? : } -
+ } /** @@ -173,7 +188,7 @@ const LayoutSearch = (props) => { }, []) return ( -
+ <>
{' '} @@ -186,7 +201,7 @@ const LayoutSearch = (props) => { : }
-
+ ) } @@ -230,7 +245,7 @@ const LayoutArchive = (props) => { const { archivePosts } = props return ( -
+ <>
{Object.keys(archivePosts).map(archiveTitle => ( { /> ))}
-
+ ) } @@ -251,27 +266,14 @@ const LayoutArchive = (props) => { */ const LayoutSlug = (props) => { const { post, lock, validPassword } = props - const drawerRight = useRef(null) - const targetRef = isBrowser ? document.getElementById('article-wrapper') : null - const floatSlot =
- { - drawerRight?.current?.handleSwitchVisible() - }} /> -
- return ( -
+ <> {post && !lock && } {post && lock && } - {/* 悬浮目录按钮 */} - {post &&
- -
} - -
+ ) } @@ -318,7 +320,7 @@ const LayoutCategoryIndex = (props) => { const LayoutTagIndex = (props) => { const { tagOptions } = props const { locale } = useGlobal() - return
+ return <>
{locale.COMMON.TAGS}:
@@ -327,7 +329,7 @@ const LayoutTagIndex = (props) => { })}
-
+ } export { diff --git a/themes/nobelium/components/BlogListBar.js b/themes/nobelium/components/BlogListBar.js index 69076937..57ca7e7b 100644 --- a/themes/nobelium/components/BlogListBar.js +++ b/themes/nobelium/components/BlogListBar.js @@ -1,7 +1,8 @@ +import { useNobeliumGlobal } from '..' import Tags from './Tags' export default function BlogListBar(props) { - const { tag, setFilterKey } = props + const { tag, setFilterKey } = useNobeliumGlobal() const handleSearchChange = (val) => { setFilterKey(val) } diff --git a/themes/nobelium/index.js b/themes/nobelium/index.js index f5152842..83650ae8 100644 --- a/themes/nobelium/index.js +++ b/themes/nobelium/index.js @@ -37,14 +37,16 @@ export const useNobeliumGlobal = () => useContext(ThemeGlobalNobelium) * @constructor */ const LayoutBase = props => { - const { children, post, topSlot, meta } = props - + const { children, post, meta } = props const fullWidth = post?.fullWidth ?? false const { onLoading } = useGlobal() const searchModal = useRef(null) + // 在列表中进行实时过滤 + const [filterKey, setFilterKey] = useState('') + const topSlot= return ( - +
{/* SEO相关 */} @@ -114,10 +116,8 @@ const LayoutIndex = props => { * @returns */ const LayoutPostList = props => { - const { posts, topSlot } = props - - // 在列表中进行实时过滤 - const [filterKey, setFilterKey] = useState('') + const { posts, topSlot,tag } = props + const { filterKey } = useNobeliumGlobal() let filteredBlogPosts = [] if (filterKey && posts) { filteredBlogPosts = posts.filter(post => { @@ -130,10 +130,11 @@ const LayoutPostList = props => { } return ( -
}> + <> {topSlot} + {tag && } {siteConfig('POST_LIST_STYLE') === 'page' ? : } -
+ ) } @@ -159,7 +160,7 @@ const LayoutSearch = props => { }, []) // 在列表中进行实时过滤 - const [filterKey, setFilterKey] = useState('') + const {filterKey} = useNobeliumGlobal() let filteredBlogPosts = [] if (filterKey && posts) { filteredBlogPosts = posts.filter(post => { @@ -171,10 +172,10 @@ const LayoutSearch = props => { filteredBlogPosts = deepClone(posts) } - return
}> + return <> {siteConfig('POST_LIST_STYLE') === 'page' ? : } -
+ } /** @@ -185,11 +186,11 @@ const LayoutSearch = props => { const LayoutArchive = props => { const { archivePosts } = props return ( -
+ <>
{Object.keys(archivePosts).map(archiveTitle => )}
-
+ ) } @@ -202,7 +203,7 @@ const LayoutSlug = props => { const { post, lock, validPassword } = props return ( -
+ <> {lock && } @@ -216,7 +217,7 @@ const LayoutSlug = props => {
} -
+ ) } @@ -226,9 +227,9 @@ const LayoutSlug = props => { * @returns */ const Layout404 = (props) => { - return
+ return <> 404 Not found. -
+ } /** @@ -240,7 +241,7 @@ const LayoutCategoryIndex = (props) => { const { categoryOptions } = props return ( -
+ <>
{categoryOptions?.map(category => { return ( @@ -257,7 +258,7 @@ const LayoutCategoryIndex = (props) => { ) })}
-
+ ) } @@ -269,7 +270,7 @@ const LayoutCategoryIndex = (props) => { const LayoutTagIndex = (props) => { const { tagOptions } = props return ( -
+ <>
{tagOptions.map(tag => { @@ -284,7 +285,7 @@ const LayoutTagIndex = (props) => { })}
-
+ ) } diff --git a/themes/plog/components/BlogListBar.js b/themes/plog/components/BlogListBar.js deleted file mode 100644 index 69076937..00000000 --- a/themes/plog/components/BlogListBar.js +++ /dev/null @@ -1,39 +0,0 @@ -import Tags from './Tags' - -export default function BlogListBar(props) { - const { tag, setFilterKey } = props - const handleSearchChange = (val) => { - setFilterKey(val) - } - if (tag) { - return (
-
- handleSearchChange(e.target.value)} - /> - - - -
- -
) - } else { - return <> - } -} diff --git a/themes/plog/components/Modal.js b/themes/plog/components/Modal.js index 24494df7..8c490093 100644 --- a/themes/plog/components/Modal.js +++ b/themes/plog/components/Modal.js @@ -5,6 +5,7 @@ import { ArrowPath, ChevronLeft, ChevronRight } from '@/components/HeroIcons' import Link from 'next/link' import { siteConfig } from '@/lib/config' import LazyImage from '@/components/LazyImage' +import { compressImage } from '@/lib/notion/mapImage' /** * 弹出框 @@ -13,7 +14,7 @@ export default function Modal(props) { const { showModal, setShowModal, modalContent, setModalContent } = usePlogGlobal() const { siteInfo, posts } = props const cancelButtonRef = useRef(null) - const img = modalContent?.pageCover || siteInfo?.pageCover + const img = compressImage(modalContent?.pageCover || siteInfo?.pageCover, 1200, 85, 'webp') const imgRef = useRef(null) // 添加loading状态 diff --git a/themes/plog/index.js b/themes/plog/index.js index a777055b..07d34068 100644 --- a/themes/plog/index.js +++ b/themes/plog/index.js @@ -98,9 +98,9 @@ const LayoutIndex = props => { */ const LayoutPostList = props => { return ( -
+ <> {siteConfig('POST_LIST_STYLE') === 'page' ? : } -
+ ) } @@ -137,11 +137,11 @@ const LayoutSearch = props => { const LayoutArchive = props => { const { archivePosts } = props return ( -
+ <>
{Object.keys(archivePosts).map(archiveTitle => )}
-
+ ) } @@ -154,7 +154,7 @@ const LayoutSlug = props => { const { post, lock, validPassword } = props return ( -
+ <> {lock && } @@ -168,7 +168,7 @@ const LayoutSlug = props => {
} -
+ ) } @@ -178,9 +178,9 @@ const LayoutSlug = props => { * @returns */ const Layout404 = (props) => { - return
+ return <> 404 Not found. -
+ } /** @@ -192,7 +192,7 @@ const LayoutCategoryIndex = (props) => { const { categoryOptions } = props return ( -
+ <>
{categoryOptions?.map(category => { return ( @@ -209,7 +209,7 @@ const LayoutCategoryIndex = (props) => { ) })}
-
+ ) } @@ -221,7 +221,7 @@ const LayoutCategoryIndex = (props) => { const LayoutTagIndex = (props) => { const { tagOptions } = props return ( -
+ <>
{tagOptions.map(tag => { @@ -236,7 +236,7 @@ const LayoutTagIndex = (props) => { })}
-
+ ) } diff --git a/themes/simple/index.js b/themes/simple/index.js index 36e48586..c4a705a7 100644 --- a/themes/simple/index.js +++ b/themes/simple/index.js @@ -120,9 +120,9 @@ const LayoutIndex = props => { */ const LayoutPostList = props => { return ( -
+ <> {siteConfig('POST_LIST_STYLE') === 'page' ? : } -
+ ) } @@ -161,11 +161,11 @@ const LayoutSearch = props => { const LayoutArchive = props => { const { archivePosts } = props return ( -
+ <>
{Object.keys(archivePosts).map(archiveTitle => )}
-
+ ) } @@ -179,7 +179,7 @@ const LayoutSlug = props => { const { fullWidth } = useGlobal() return ( -
+ <> {lock && } @@ -208,7 +208,7 @@ const LayoutSlug = props => {
-
+ ) } @@ -218,9 +218,9 @@ const LayoutSlug = props => { * @returns */ const Layout404 = (props) => { - return
+ return <> 404 Not found. -
+ } /** @@ -231,7 +231,7 @@ const Layout404 = (props) => { const LayoutCategoryIndex = props => { const { categoryOptions } = props return ( -
+ <>
{categoryOptions?.map(category => { return ( @@ -248,7 +248,7 @@ const LayoutCategoryIndex = props => { ) })}
-
+ ) } @@ -260,7 +260,7 @@ const LayoutCategoryIndex = props => { const LayoutTagIndex = (props) => { const { tagOptions } = props return ( -
+ <>
{tagOptions.map(tag => { return ( @@ -276,7 +276,7 @@ const LayoutTagIndex = (props) => { ) })}
-
+ ) }