Skip to content

Commit 962fc5c

Browse files
committed
better navigation on pages.
1 parent 1a96c80 commit 962fc5c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/pages/BlogPostPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ const BlogPostPage = () => {
190190
<div className="mx-auto max-w-7xl px-6 lg:px-8">
191191
<div className="lg:grid lg:grid-cols-4 lg:gap-8">
192192
<div className="lg:col-span-3">
193-
<Link to="/" className="text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4">
194-
<ArrowLeftIcon size={24} /> Back to Home
193+
<Link to="/blog" className="text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4">
194+
<ArrowLeftIcon size={24} /> Back to Blog
195195
</Link>
196196
<div ref={contentRef} className="prose prose-xl prose-dark max-w-none">
197197
<ReactMarkdown components={{ a: LinkRenderer, code: (props) => <CodeBlock {...props} openModal={openModal} /> }}>{post.body}</ReactMarkdown>

src/pages/ProjectPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ const ProjectPage = () => {
5858
<div className="mx-auto max-w-7xl px-6 lg:px-8">
5959
<div className="lg:grid lg:grid-cols-4 lg:gap-8">
6060
<div className="lg:col-span-3">
61-
<Link to="/" className="text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4">
62-
<ArrowLeftIcon size={24} /> Back to Home
61+
<Link to="/projects" className="text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4">
62+
<ArrowLeftIcon size={24} /> Back to Projects
6363
</Link>
6464
<h1 className="text-4xl font-bold tracking-tight text-markdown-hx-color sm:text-6xl">{project.title}</h1>
6565
{project.image && <img src={project.image} alt={project.title} className="mt-8 w-full rounded-lg text-gray-200" />}

0 commit comments

Comments
 (0)