Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
hlassiege committed Nov 12, 2023
1 parent c94cd0e commit 16c6326
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/BlogCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<a
v-for="tag in tags"
:key="tag"
:href="'/blog?tag=' + tag"
:href="currentLang + '/blog?tag=' + tag"
:aria-label="`More about ${tag}`"
class="m-1 leading-loose text-slate-500 border border-current lowercase px-2 rounded font-medium"
@click.prevent="$emit('changeCurrentTag', tag)"
Expand Down
6 changes: 5 additions & 1 deletion components/BlogFilterBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<a
v-for="tag in allTags"
:key="tag"
:href="'/blog?tag=' + tag"
:href="'blog?tag=' + tag"
>
<div class="px-1 mt-2">
<button
Expand All @@ -69,6 +69,10 @@ defineProps({
type: String,
default: "",
},
currentLang: {
type: String,
default: "",
},
});
const allTags = [
Expand Down
5 changes: 4 additions & 1 deletion pages/blog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
<BlogSectionHeader :current-lang="currentLang" />
</keep-alive>
<div class="flex flex-col items-start sm:flex-row pt-12">
<BlogFilterBar :current-tag="currentTag" />
<BlogFilterBar
:current-tag="currentTag"
:current-lang="currentLang"
/>
<div>
<BlogContentLanguageSwitcher
lang-switch="FR"
Expand Down
5 changes: 4 additions & 1 deletion pages/fr/blog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
<BlogSectionHeader :current-lang="currentLang" />
</keep-alive>
<div class="flex flex-col items-start sm:flex-row pt-12">
<BlogFilterBar :current-tag="currentTag" />
<BlogFilterBar
:current-tag="currentTag"
:current-lang="currentLang"
/>
<div>
<BlogContentLanguageSwitcher
lang-switch="EN"
Expand Down

0 comments on commit 16c6326

Please sign in to comment.