Skip to content

Commit

Permalink
文章
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Nov 27, 2022
1 parent e946591 commit c527673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/fukasawa/components/ArticleDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function ArticleDetail(props) {
const { locale } = useGlobal()
const date = formatDate(post?.date?.start_date || post?.createdTime, locale.LOCALE)
return (<div id="container" className="max-w-5xl overflow-x-auto flex-grow mx-auto w-screen md:w-full ">
{post?.type && !post?.type.includes('Page') && post?.page_cover && (
{post?.type && !post?.type !== 'Page' && post?.page_cover && (
<div className="w-full relative md:flex-shrink-0 overflow-hidden">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img alt={post.title} src={post?.page_cover} className='object-center w-full' />
Expand Down

0 comments on commit c527673

Please sign in to comment.