load 优化

This commit is contained in:
tangly1024.com
2023-12-01 12:50:54 +08:00
parent 23ac2195c9
commit 3b181f3069
8 changed files with 118 additions and 61 deletions

View File

@@ -5,6 +5,7 @@ import ShareButtons from './ShareButtons'
const ShareBar = ({ post }) => {
const router = useRouter()
const title = siteConfig('TITLE')
if (!JSON.parse(siteConfig('POST_SHARE_BAR_ENABLE')) || !post || post?.type !== 'Post') {
return <></>
@@ -17,7 +18,7 @@ const ShareBar = ({ post }) => {
<ShareButtons shareUrl={shareUrl} title={post.title} image={post.pageCover} body={
post?.title +
' | ' +
siteConfig('TITLE') +
title +
' ' +
shareUrl +
' ' +