From 4f0ba35da00cfaffddfbf2508b49d6ddb90fee30 Mon Sep 17 00:00:00 2001 From: xylophonez Date: Tue, 9 Jun 2026 12:28:26 +0100 Subject: [PATCH] fix: permalink --- src/App.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 1df7671..c0b9548 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,7 +3,6 @@ import { Link, Navigate, Route, Routes, useLocation, useParams } from "react-rou import { BLOG_DEFAULT_DESCRIPTION, BLOG_NAME, - BLOG_PERMALINK_PREFIX, BLOG_SITE_URL, BLOG_TWITTER_HANDLE } from "./config"; @@ -45,7 +44,6 @@ const TWITTER_WIDGETS_SCRIPT_ID = "twitter-widgets-script"; let twitterWidgetsPromise: Promise | null = null; const toAbsoluteUrl = (path = "/"): string => new URL(path, BLOG_SITE_URL).toString(); -const toPermalinkUrl = (path = "/"): string => new URL(path, BLOG_PERMALINK_PREFIX).toString(); const ensureTwitterWidgets = (): Promise => { if (window.twttr?.widgets?.load) return Promise.resolve(); @@ -404,9 +402,6 @@ 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 = post - ? toPermalinkUrl(`/${post.slug}`) - : toPermalinkUrl(location.pathname); const metadataTitle = state === "loading" ? `${BLOG_NAME} | Loading` @@ -451,9 +446,6 @@ function PostPage({ {post.readingTime && {post.readingTime} min read} {post.wordCount && {post.wordCount} words} {post.postTxId.slice(0, 8)}... - - [permalink] - [arweave]