Skip to content

Commit

Permalink
docs(seo): remove trailing | in lang switcher (nuxt-modules#2348)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxh06 authored Aug 26, 2023
1 parent 0ce016a commit bef1495
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/content/2.guide/7.seo.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ const availableLocales = computed(() => {
<p>{{ t('pages.top.description') }}</p>
<p>{{ t('pages.top.languages') }}</p>
<nav>
<span v-for="locale in availableLocales" :key="locale.code">
<NuxtLink :to="switchLocalePath(locale.code) || ''">{{ locale.name }}</NuxtLink> |
</span>
<template v-for="(locale, index) in availableLocales" :key="locale.code">
<template v-if="index"> | </template>
<NuxtLink :to="switchLocalePath(locale.code)">{{ locale.name ?? locale.code }}</NuxtLink>
</template>
</nav>
</div>
</template>
Expand Down

0 comments on commit bef1495

Please sign in to comment.