Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 19, 2025

When navigating from the articles index page to read a specific article, users previously had no clear way to return to the articles listing other than using the main navigation menu. This created a poor user experience, especially on mobile devices where the navigation menu requires an additional tap to access.

This PR adds a prominent "← Back" link at the top of each article page, positioned above the article title in the PostHeader component. The implementation:

  • Uses a clean, minimal design that matches the site's existing color scheme
  • Includes a left arrow icon for clear visual indication of the navigation direction
  • Leverages Next.js Link component for optimal client-side routing performance
  • Maintains responsive design principles across desktop and mobile viewports
  • Adds minimal overhead (only 14 bytes to article page bundles)

The back navigation link is styled with subtle gray colors (text-zinc-400 with hover:text-zinc-300) that complement the site's dark theme without being visually intrusive. Users can now easily navigate back to browse other articles without losing their place or having to use browser back navigation.

Back Navigation Implementation

Fixes #174.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Better back-navigation in articles Add back navigation to article pages Sep 19, 2025
Copilot AI requested a review from InDieTasten September 19, 2025 12:59
>
<path strokeLinecap="round" strokeLinejoin="round" d="M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18" />
</svg>
Back to Articles
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Change this to "Back"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the text from "Back to Articles" to "Back" as requested. The navigation functionality remains the same.

Updated Back Navigation

Copy link
Contributor Author

Copilot AI commented Sep 19, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Copilot AI requested a review from InDieTasten September 19, 2025 13:12
Copilot finished work on behalf of InDieTasten September 19, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better back-navigation in articles

2 participants