fix: the invalid share link for images.

This commit is contained in:
Yufan Sheng 2024-06-30 19:28:13 +08:00
parent 30d328adc6
commit 303208003b
Signed by: syhily
GPG Key ID: 9D18A22A7DCD5A9B

View File

@ -13,14 +13,14 @@ const { post } = Astro.props;
const postURL = urlJoin(options.website, post.permalink);
const qq = querystring.stringify({
url: postURL,
pics: urlJoin(options.website, post.cover.src),
pics: post.cover.src,
summary: post.summary,
});
const weibo = querystring.stringify({
url: postURL,
type: 'button',
language: 'zh_cn',
pic: urlJoin(options.website, post.cover.src),
pic: post.cover.src,
searchPic: true,
title: `【${post.title}】${post.summary}`,
});