mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Merge pull request #427 from tangly1024/feature/page-differ-from-post
Page 隐藏博文组件
This commit is contained in:
@@ -92,7 +92,7 @@ export default function ArticleDetail(props) {
|
||||
|
||||
</article>
|
||||
|
||||
<ArticleAround prev={prev} next={next} />
|
||||
{post.type === 'Post' && <ArticleAround prev={prev} next={next} /> }
|
||||
|
||||
{/* 评论互动 */}
|
||||
<div className="duration-200 shadow px-12 w-screen md:w-full overflow-x-auto dark:border-gray-700 bg-white dark:bg-hexo-black-gray">
|
||||
|
||||
@@ -74,9 +74,10 @@ export const LayoutSlug = props => {
|
||||
data-ad-slot="3806269138" />
|
||||
</section>
|
||||
|
||||
<ArticleCopyright {...props} />
|
||||
<ArticleRecommend {...props} />
|
||||
<ArticleAdjacent {...props} />
|
||||
{post.type === 'Post' && <ArticleCopyright {...props} /> }
|
||||
{post.type === 'Post' && <ArticleRecommend {...props} /> }
|
||||
{post.type === 'Post' && <ArticleAdjacent {...props} /> }
|
||||
|
||||
</article>
|
||||
|
||||
<hr className='border-dashed' />
|
||||
|
||||
@@ -66,7 +66,7 @@ export const ArticleDetail = props => {
|
||||
{CONFIG_MEDIUM.POST_DETAIL_TAG && post?.tagItems?.map(tag => <TagItemMini key={tag.name} tag={tag} />)}
|
||||
</div>
|
||||
</div>
|
||||
<ArticleAround prev={prev} next={next} />
|
||||
{post.type === 'Post' && <ArticleAround prev={prev} next={next} /> }
|
||||
<Comment frontMatter={post} />
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@@ -100,29 +100,31 @@ export default function ArticleDetail(props) {
|
||||
|
||||
{showArticleInfo && <>
|
||||
{/* 版权声明 */}
|
||||
<ArticleCopyright author={BLOG.AUTHOR} url={url} />
|
||||
{post.type === 'Post' && <ArticleCopyright author={BLOG.AUTHOR} url={url} /> }
|
||||
|
||||
{/* 推荐文章 */}
|
||||
<RecommendPosts currentPost={post} recommendPosts={recommendPosts} />
|
||||
{post.type === 'Post' && <RecommendPosts currentPost={post} recommendPosts={recommendPosts} />}
|
||||
|
||||
{/* 标签列表 */}
|
||||
<section className="md:flex md:justify-between">
|
||||
{post.tagItems && (
|
||||
<div className="flex flex-nowrap leading-8 p-1 py-4 overflow-x-auto">
|
||||
<div className="hidden md:block dark:text-gray-300 whitespace-nowrap">
|
||||
{locale.COMMON.TAGS}:
|
||||
</div>
|
||||
{post.tagItems.map(tag => (
|
||||
<TagItem key={tag.name} tag={tag} />
|
||||
))}
|
||||
{post.type === 'Post' && (
|
||||
<section className="md:flex md:justify-between">
|
||||
{post.tagItems && (
|
||||
<div className="flex flex-nowrap leading-8 p-1 py-4 overflow-x-auto">
|
||||
<div className="hidden md:block dark:text-gray-300 whitespace-nowrap">
|
||||
{locale.COMMON.TAGS}:
|
||||
</div>
|
||||
{post.tagItems.map(tag => (
|
||||
<TagItem key={tag.name} tag={tag} />
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
<div>
|
||||
<ShareBar post={post} />
|
||||
</div>
|
||||
)}
|
||||
<div>
|
||||
<ShareBar post={post} />
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
)}
|
||||
|
||||
<BlogAround prev={prev} next={next} />
|
||||
{post.type === 'Post' && <BlogAround prev={prev} next={next} /> }
|
||||
</>}
|
||||
|
||||
{/* 评论互动 */}
|
||||
|
||||
Reference in New Issue
Block a user