Skip to content

Commit

Permalink
chore: update links, remove search
Browse files Browse the repository at this point in the history
  • Loading branch information
itsacoyote committed Apr 26, 2024
1 parent 02a0b37 commit d90bc2f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ logs
.history

.firebase
.unlighthouse
2 changes: 1 addition & 1 deletion app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineAppConfig({
light: '/logos/zksync_logo_black.svg',
dark: '/logos/zksync_logo.svg',
},
search: true,
search: false,
colorMode: true,
links: [
{
Expand Down
4 changes: 2 additions & 2 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ provide('navigation', navigation);

<AppFooter />

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

<UNotifications />
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/content/ProseA.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<NuxtLink
<SiteLink
:rel="isExternalLink ? 'noopener noreferrer' : ''"
:href="href"
:target="isExternalLink ? '_blank' : target"
Expand All @@ -12,7 +12,7 @@
name="i-heroicons-arrow-up-right-20-solid"
class="absolute -right-2.5 top-0.5 h-3 w-3 text-xs font-light"
/>
</NuxtLink>
</SiteLink>
</template>

<script setup lang="ts">
Expand Down
6 changes: 3 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export default defineNuxtConfig({
{ name: 'Fira Mono', provider: 'google' },
],
},
routeRules: {
'/api/search.json': { prerender: true },
},
// routeRules: {
// '/api/search.json': { prerender: true },
// },
devtools: {
enabled: true,
},
Expand Down
4 changes: 2 additions & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ useSeoMeta({
:links="page.features.links"
>
<UPageGrid>
<NuxtLink
<SiteLink
v-for="(guide, index) of guides"
:key="index"
:to="`/tutorials/${guide._dir}`"
Expand Down Expand Up @@ -55,7 +55,7 @@ useSeoMeta({
/>
</div>
</UCard>
</NuxtLink>
</SiteLink>
</UPageGrid>
</ULandingSection>
</div>
Expand Down
4 changes: 2 additions & 2 deletions pages/tutorials/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { data: guides } = await useAsyncData('tutorials', () =>
description="Explore all the community contributed guides for zkSync"
icon="i-zksync-logo"
/>
<NuxtLink
<SiteLink
v-for="(guide, index) of guides"
:key="index"
:to="`/tutorials/${guide._dir}`"
Expand All @@ -33,7 +33,7 @@ const { data: guides } = await useAsyncData('tutorials', () =>
class="mb-2 mr-2"
/>
</div>
</NuxtLink>
</SiteLink>
</UPageBody>
</UPage>
</UContainer>
Expand Down

0 comments on commit d90bc2f

Please sign in to comment.