Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/app/components/SiteHeader.vue
diff options
context:
space:
mode:
authorLeitwolf2026-11-10 02:11:44 +0300
committerGitHub2026-11-10 02:11:44 +0300
commit7701cf0a9b34f04403bd1137ec63638b7075597a (patch)
treee45bd195f9e2a4bd404c3bc7a048d518ee36b75b /app/components/SiteHeader.vue
parentbf60125c3e252ec551f4b608c90225f2aaf966b3 (diff)
parent0969bb1861da0c2bd10b2f1864857330488fa34a (diff)
downloadtazel.net-main.tar.gz
Merge pull request #6 from Progmasoft/content/document-labelHEADmain
Remove duplicate links from the header and footer
Diffstat (limited to 'app/components/SiteHeader.vue')
-rw-r--r--app/components/SiteHeader.vue14
1 files changed, 3 insertions, 11 deletions
diff --git a/app/components/SiteHeader.vue b/app/components/SiteHeader.vue
index e7f01fe..1704b0a 100644
--- a/app/components/SiteHeader.vue
+++ b/app/components/SiteHeader.vue
@@ -8,13 +8,9 @@ import { firstDocPage, repository } from "~/content/site";
const { locale, page, to } = useSiteLocale();
const words = computed(() => chrome[locale.value]);
-// Each link is current on every page of its part of the documentation.
-const links = computed(() => [
- { label: words.value.docs, path: firstDocPage, part: "/docs/getting-started" },
- { label: words.value.reference, path: "/docs/reference/commands", part: "/docs/reference" },
- { label: words.value.plugins, path: "/docs/extending/plugins", part: "/docs/extending" },
-]);
-const releases = `${repository}/releases`;
+// The one link of the header leads into the documentation and is current on
+// every page of it.
+const links = computed(() => [{ label: words.value.docs, path: firstDocPage, part: "/docs" }]);
// A menu closes when a link in it is followed.
const route = useRoute();
@@ -44,7 +40,6 @@ watch(
:class="{ active: page.startsWith(link.part) }"
>{{ link.label }}</NuxtLink
>
- <a :href="releases">{{ words.releases }}</a>
</nav>
<div class="tools">
@@ -88,9 +83,6 @@ watch(
<li v-for="link in links" :key="link.path">
<NuxtLink :to="to(link.path)">{{ link.label }}</NuxtLink>
</li>
- <li>
- <a :href="releases">{{ words.releases }}</a>
- </li>
</ul>
</details>
</div>