feat: add permalinks

This commit is contained in:
fn
2026-03-27 15:06:11 +00:00
parent 7396c7288d
commit 4e379ab352

View File

@@ -219,6 +219,7 @@ function PostPage({
const bannerTxId = postFrontmatter.banner || post.frontmatter?.banner || post.bannerTxId;
const publishedDate = getReadableDate(postFrontmatter.date || post.publishedAt);
const updatedDate = getReadableDate(postFrontmatter.updated || post.updated || undefined);
const permalink = `https://p2gmoq6mwa5dyl25lkkqprhh3rlgpgtpyb6rhcnggwnsfz5xwdfa.arweave.net/${post.slug}`;
return (
<article className="post">
@@ -230,6 +231,9 @@ function PostPage({
{updatedDate && <span>Updated {updatedDate}</span>}
{post.readingTime && <span>{post.readingTime} min read</span>}
{post.wordCount && <span>{post.wordCount} words</span>}
<span>
<a href={permalink}>[permalink]</a>
</span>
</div>
</header>
{bannerTxId && (