Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chibat committed Dec 14, 2024
1 parent 5aa090c commit 5d7ba06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/posts/[postId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export default defineRoute(async (req, ctx) => {
<meta property="og:title" content={title}></meta>
<meta
property="og:description"
content={post.source.substring(0, 1000)?.replaceAll("\n", " ")}
content={post.source.replace(/^#+/, "").replaceAll("```", "").trim()
.substring(0, 1000).replaceAll("\n", " ")}
>
</meta>
<meta name="twitter:card" content="summary"></meta>
Expand Down

0 comments on commit 5d7ba06

Please sign in to comment.