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