样式微调

This commit is contained in:
tangly1024.com
2023-03-09 17:14:19 +08:00
parent 56b9c8b2c5
commit 557b2bd72d
4 changed files with 4 additions and 5 deletions

View File

@@ -235,7 +235,7 @@ async function getPageRecordMapByNotionAPI({ pageId, from }) {
})
}
const notice = await getNotice(collectionData.filter(post => { return post?.type === 'Notice' && post.status === 'Published' })?.[0])
const notice = await getNotice(collectionData.filter(post => { return post && post?.type && post?.type === 'Notice' && post.status === 'Published' })?.[0])
const categoryOptions = getAllCategories({ allPages, categoryOptions: getCategoryOptions(schema) })
const tagOptions = getAllTags({ allPages, tagOptions: getTagOptions(schema) })
const siteInfo = getBlogInfo({ collection, block })

View File

@@ -207,7 +207,6 @@
.medium-zoom-image {
border-radius: 0;
@apply bg-gray-100 dark:bg-black
}
.medium-zoom-image--opened {
@@ -939,7 +938,7 @@ code[class*='language-'] {
align-self: flex-start;
width: 24px;
height: 24px;
font-size: 1.3em;
font-size: 1em;
line-height: 1em;
}

View File

@@ -50,7 +50,7 @@ export const LayoutSlug = props => {
{lock && <ArticleLock validPassword={validPassword} />}
{!lock && <div id="container" className="overflow-x-auto md:w-full px-3 ">
{post?.type === 'Post' && <>
{ post?.type && post?.type === 'Post' && <>
<div
data-aos="fade-down"
data-aos-duration="500"

View File

@@ -25,7 +25,7 @@ export const DropMenu = ({ link }) => {
{/* 子菜单 */}
{hasSubMenu && <ul className={`${show ? 'visible opacity-100' : 'invisible opacity-0'} border-gray-100 bg-white dark:bg-black dark:border-gray-800 transition-all duration-300 z-20 top-12 absolute block border drop-shadow-lg `}>
{link.subMenus.map(sLink => {
return <li key={sLink.id} className=' text-blue-400 hover:bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200 border-b dark:border-gray-800 py-3 pr-6 pl-2'>
return <li key={sLink.id} className=' text-blue-500 hover:bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200 border-b dark:border-gray-800 py-3 pr-6 pl-2'>
<Link href={sLink.to}>
<span className='text-xs'>{sLink.title}</span>
</Link>