From abd80f4c8d537c582ebec0af19d05bf7571ca167 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 26 Apr 2023 16:39:52 +0800 Subject: [PATCH] sharebar position --- components/ShareBar.js | 2 +- components/ShareButtons.js | 4 +++- themes/hexo/LayoutSlug.js | 5 ++--- themes/matery/LayoutSlug.js | 6 +++--- themes/medium/LayoutSlug.js | 7 +++++-- themes/next/components/ArticleDetail.js | 7 ++++--- themes/simple/LayoutSlug.js | 2 +- 7 files changed, 19 insertions(+), 14 deletions(-) diff --git a/components/ShareBar.js b/components/ShareBar.js index 39f7c3d9..347dc16e 100644 --- a/components/ShareBar.js +++ b/components/ShareBar.js @@ -12,7 +12,7 @@ const ShareBar = ({ post }) => { const shareUrl = BLOG.LINK + router.asPath - return
+ return
{ } if (singleService === 'wechat') { - return } if (singleService === 'link') { diff --git a/themes/hexo/LayoutSlug.js b/themes/hexo/LayoutSlug.js index cc9bdab5..69478a09 100644 --- a/themes/hexo/LayoutSlug.js +++ b/themes/hexo/LayoutSlug.js @@ -69,6 +69,8 @@ export const LayoutSlug = props => { data-ad-slot="3806269138" /> + {/* 分享 */} + {post.type === 'Post' && } {post.type === 'Post' && } {post.type === 'Post' && } @@ -77,9 +79,6 @@ export const LayoutSlug = props => {
- {/* 分享 */} - - {/* 评论互动 */}
diff --git a/themes/matery/LayoutSlug.js b/themes/matery/LayoutSlug.js index e938942b..da07db06 100644 --- a/themes/matery/LayoutSlug.js +++ b/themes/matery/LayoutSlug.js @@ -81,15 +81,15 @@ export const LayoutSlug = props => { data-ad-client="ca-pub-2708419466378217" data-ad-slot="3806269138" /> - + {/* 分享 */} + {/* 文章版权说明 */} {post.type === 'Post' && }
- {/* 分享 */} - + {/* 评论互动 */}
diff --git a/themes/medium/LayoutSlug.js b/themes/medium/LayoutSlug.js index b6d54077..401c4a03 100644 --- a/themes/medium/LayoutSlug.js +++ b/themes/medium/LayoutSlug.js @@ -86,15 +86,18 @@ export const LayoutSlug = props => {
+ + {/* 分享 */} + + {/* 文章分类和标签信息 */}
{CONFIG_MEDIUM.POST_DETAIL_CATEGORY && post.category && }
{CONFIG_MEDIUM.POST_DETAIL_TAG && post?.tagItems?.map(tag => )}
+ {post.type === 'Post' && } - {/* 分享 */} -
diff --git a/themes/next/components/ArticleDetail.js b/themes/next/components/ArticleDetail.js index 75fc7f7d..c0c2efac 100644 --- a/themes/next/components/ArticleDetail.js +++ b/themes/next/components/ArticleDetail.js @@ -94,15 +94,16 @@ export default function ArticleDetail(props) { {showArticleInfo && <> + + {/* 分享 */} + + {/* 版权声明 */} {post.type === 'Post' && } {/* 推荐文章 */} {post.type === 'Post' && } - {/* 分享 */} - -
{/* 分类 */} {post.category && <> diff --git a/themes/simple/LayoutSlug.js b/themes/simple/LayoutSlug.js index d0cd2a1d..96f42c3e 100644 --- a/themes/simple/LayoutSlug.js +++ b/themes/simple/LayoutSlug.js @@ -23,9 +23,9 @@ export const LayoutSlug = props => { {post && <> - {post.type === 'Post' && } {/* 分享 */} + {post.type === 'Post' && } }
}