diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-01-02 18:37:42 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-01-02 18:37:42 +0200 |
| commit | 29245a84adfe0767764528c1bf87d81e4d48fdfd (patch) | |
| tree | 7160b50c5aabeffed1fbbee77582d330a7df2452 /src | |
| parent | bc5c1ce035ebd352a46ebb43e352581d693149d5 (diff) | |
Fixed previous/next blogs URLs
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/blogs/[...slug].astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/blogs/[...slug].astro b/src/pages/blogs/[...slug].astro index dbd6b80..15e9f3d 100644 --- a/src/pages/blogs/[...slug].astro +++ b/src/pages/blogs/[...slug].astro @@ -41,7 +41,7 @@ const nextBlog = sortedBlogs[currentIndex - 1] || undefined; previousBlog ? ( <TerminalBorder header="Previous Blog"> <span class="text-[var(--secondary)] truncate flex-1"> - <Link href={previousBlog.slug} newTab={false}> + <Link href=`/blogs/${previousBlog.slug}` newTab={false}> vim ~/blogs/{previousBlog.slug}.md </Link> </span> @@ -55,7 +55,7 @@ const nextBlog = sortedBlogs[currentIndex - 1] || undefined; <TerminalBorder header="Next Blog"> <div class="w-full flex items-center"> <span class="text-[var(--secondary)] truncate flex-1"> - <Link href={nextBlog.slug} newTab={false}> + <Link href=`/blogs/${nextBlog.slug}` newTab={false}> vim ~/blogs/{nextBlog.slug}.md </Link> </span> |
