Skip to content

Commit

Permalink
✨ Share link
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiyanYunyi committed Oct 28, 2023
1 parent 576ea78 commit eb2a4ba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type Props = MDInstance & { image?: string };
const {
content: { title = SITE_TITLE, description = SITE_DESCRIPTION, heroImage, image },
frontmatter,
url,
} = Astro.props;
const finalImage = image || heroImage;
Expand All @@ -36,6 +37,15 @@ const finalImage = image || heroImage;
</header>
<slot />
<ArticleTags tag={frontmatter.tag} />
<hr />
<p>
复制如下链接到邦联宇宙搜索框以分享本文
<code class="break-all select-all"
>https://blog.yunyi.beiyan.us/api/activitypub/note/{
url?.substring(7).replaceAll('/', '_')
}</code
>
</p>
</article>
{
frontmatter.toc && (
Expand Down

0 comments on commit eb2a4ba

Please sign in to comment.