Skip to content

Commit

Permalink
fix: header links (#66)
Browse files Browse the repository at this point in the history
# Description

Update docs-nuxt-template to fix missing main nav links.
  • Loading branch information
itsacoyote authored Sep 5, 2024
1 parent 44d76d0 commit 822a018
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 37 deletions.
16 changes: 1 addition & 15 deletions app.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup lang="ts">
import type { ParsedContent } from '@nuxt/content/types';
provideHeadlessUseId(() => useId());
const { seo } = useAppConfig();
Expand Down Expand Up @@ -33,18 +31,13 @@ useSeoMeta({
});
defineOgImageComponent('OgImageZK');
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
default: () => [],
server: false,
});
</script>

<template>
<div>
<NuxtLoadingIndicator />

<HeaderComponent :search="true" />
<HeaderComponent />

<UMain>
<NuxtLayout>
Expand All @@ -54,13 +47,6 @@ const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {

<FooterComponent />

<ClientOnly>
<LazyUContentSearch
:files="files"
:navigation="navigation || []"
/>
</ClientOnly>

<UNotifications />
</div>
</template>
Binary file modified bun.lockb
Binary file not shown.
14 changes: 1 addition & 13 deletions error.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup lang="ts">
import type { NuxtError } from '#app';
import type { ParsedContent } from '@nuxt/content/dist/runtime/types';
useSeoMeta({
title: 'Page not found',
Expand All @@ -21,17 +20,13 @@ useHead({
});
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation());
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
default: () => [],
server: false,
});
provide('navigation', navigation);
</script>

<template>
<div>
<HeaderComponent :search="true" />
<HeaderComponent />

<UMain>
<UContainer>
Expand All @@ -43,13 +38,6 @@ provide('navigation', navigation);

<FooterComponent />

<ClientOnly>
<LazyUContentSearch
:files="files"
:navigation="navigation"
/>
</ClientOnly>

<UNotifications />
</div>
</template>
1 change: 0 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default defineNuxtConfig({
},
},
routeRules: {
'/api/search.json': { prerender: true },
'*-surround': { robots: false },
'/*/*-surround': { robots: false },
'/tutorials/*/_dir': { robots: false },
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"release": "semantic-release"
},
"dependencies": {
"@matterlabs/docs-nuxt-template": "2.8.2",
"@matterlabs/docs-nuxt-template": "2.8.4",
"@iconify-json/heroicons": "^1.2.0",
"@iconify-json/simple-icons": "^1.2.1",
"@iconify-json/vscode-icons": "^1.2.0",
"@nuxt/content": "^2.13.2",
"@nuxt/eslint": "^0.5.5",
"@nuxt/fonts": "^0.7.2",
Expand Down
7 changes: 0 additions & 7 deletions server/api/search.json.get.ts

This file was deleted.

0 comments on commit 822a018

Please sign in to comment.