Skip to content

Commit

Permalink
add(文章): 更新分享title、description
Browse files Browse the repository at this point in the history
Signed-off-by: rexhang <rexhang_work@outlook.com>
  • Loading branch information
rexhang committed Aug 23, 2023
1 parent c6f513a commit 1412328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/registerWeChatDevConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const jsApiList = [
"openCard",
];
const shareInfo = {
title: document.getElementsByTagName("title")[0]?.innerText, // 分享标题
desc: document.getElementsByTagName("meta")["description"]?.content, // 分享描述
title: `《${document.getElementsByTagName("title")[0]?.innerText?.split?.('|')?.[0]?.trim?.()}》@rexhang.inc` || 'blog.rexhang.com', // 分享标题
desc: document.getElementsByTagName("meta")?.["description"]?.content || 'blog.rexhang.com', // 分享描述
link: window.location.href, // 分享链接
imgUrl: "https://rexhang.com/img/rexhang-blog-share-logo-100x100.png", // 分享图标
type: "", // 分享类型,music、video或link,不填默认为link
Expand Down

0 comments on commit 1412328

Please sign in to comment.