Skip to content

Commit

Permalink
fix source and history links
Browse files Browse the repository at this point in the history
Signed-off-by: Vu Van Dung <[email protected]>
  • Loading branch information
joulev committed Dec 18, 2023
1 parent 53e93df commit 78be56d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/(public)/blogs/(posts)/client-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export function PostedDate() {

export function ViewSourceHistory() {
const { slug } = useMetadata();
const sourceLink = `https://github.com/joulev/website/blob/main/app/(public)/blogs/(posts)/${slug}/page.mdx`;
const historyLink = `https://github.com/joulev/website/commits/main/app/(public)/blogs/(posts)/${slug}/page.mdx`;
const sourceLink = `https://github.com/joulev/website/blob/main/src/app/(public)/blogs/(posts)/${slug}/page.mdx`;
const historyLink = `https://github.com/joulev/website/commits/main/src/app/(public)/blogs/(posts)/${slug}/page.mdx`;
return (
<div className="flex flex-row gap-4">
<Link href={sourceLink}>View source</Link>
Expand Down

0 comments on commit 78be56d

Please sign in to comment.