Skip to content

Commit

Permalink
[fix] re-introduce external link
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpadden committed Jun 15, 2024
1 parent c0d2433 commit 1d85538
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/section/BlogPosts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ const props = defineProps({

<div class="mb-4 grid grid-cols-1 gap-4 md:grid-cols-2">
<div v-for="(article, ix) of articles" :key="ix">
<NuxtLink :to="article._path">
<!--
Specify `external` to force the link to be considered as external. This
resolves an issue where navigating to a blog post would load the previous
post if the user clicked the back button -- this unexpected behavior is
still not entirely understood, but at least this is a workaround.
-->
<NuxtLink :to="article._path" external>
<div
class="space-y-4 rounded-xl bg-black bg-opacity-70 p-4 text-white drop-shadow-lg hover:ring-1 hover:ring-white"
>
Expand Down

0 comments on commit 1d85538

Please sign in to comment.