This commit is contained in:
tangly1024
2022-12-25 16:23:38 +08:00
parent 0edc6405af
commit fa0aac29f1
3 changed files with 4 additions and 4 deletions

View File

@@ -51,7 +51,6 @@ export const LayoutSlug = props => {
{lock && <ArticleLock validPassword={validPassword} />}
{!lock && <div id="container" className="overflow-x-auto flex-grow md:w-full ">
{/* <ArticleInfo */}
{post?.type === 'Post' && <>
<div className='px-5'>
<ArticleInfo post={post} />

View File

@@ -10,7 +10,7 @@ export const ArticleInfo = (props) => {
const { locale } = useGlobal()
const date = formatDate(post?.date?.start_date || post?.createdTime, locale.LOCALE)
return <section className='mb-3'>
return <section className='mb-3 dark:text-gray-200'>
<div className='my-3'>
{post.tagItems && (
<div className="flex flex-nowrap overflow-x-auto">

View File

@@ -40,8 +40,9 @@ const SideBar = (props) => {
if (link && link.show) {
const selected = (router.pathname === link.to) || (router.asPath === link.to)
return <Link key={link.to} title={link.to} href={link.to} >
<a target={link.to.indexOf('http') === 0 ? '_blank' : '_self'} className={'py-2 px-5 duration-300 text-base justify-between hover:bg-gray-700 hover:text-white hover:shadow-lg cursor-pointer font-light flex flex-nowrap items-center ' +
(selected ? 'bg-gray-200 text-black' : ' ')} >
<a target={link.to.indexOf('http') === 0 ? '_blank' : '_self'}
className={'py-2 px-5 duration-300 text-base justify-between hover:bg-gray-700 hover:text-white hover:shadow-lg cursor-pointer font-light flex flex-nowrap items-center ' +
(selected ? 'bg-indigo-500 text-white ' : ' text-black dark:text-white ')} >
<div className='my-auto items-center justify-between flex '>
<i className={`${link.icon} w-4 ml-3 mr-6 text-center`} />
<div >{link.name}</div>