Skip to content

Commit

Permalink
add redirect to layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ayumitk committed Aug 13, 2024
1 parent 64e998f commit d47e7cf
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 8 deletions.
13 changes: 6 additions & 7 deletions layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<div class="bg-white text-lg text-gray-500 font-sans">
<Header />
<slot />
<Footer />
</div>
</template>
<script setup lang="ts">
await navigateTo('https://startale.com', {
redirectCode: 301,
external: true
})
</script>
37 changes: 36 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
<template>
<HomeHero />
<client-only>
<HomeParticleStars />
<HomeParticleLogo />
</client-only>
<div class="space-y-28 lg:space-y-40">
<HomeFeatures />
<HomeProducts />
<HomeLogos />
<!-- <HomeBlog /> -->
<HomeCallToAction />
</div>
</template>

<script setup lang="ts">
navigateTo('https://startale.com', { redirectCode: 301 })
import { meta } from "@/content/meta";
const { t } = useI18n();
const seoTitle = `${meta.siteName} - ${t("meta.tagline")}`;
const seoDescription = t("meta.description");
const seoUrl = meta.url;
const seoImage = `${meta.image}common.png`;
useServerSeoMeta({
title: () => seoTitle,
description: () => seoDescription,
ogTitle: () => seoTitle,
ogDescription: () => seoDescription,
ogImage: () => seoImage,
ogImageUrl: () => seoImage,
ogType: () => "website",
ogUrl: () => seoUrl,
twitterCard: () => "summary_large_image",
twitterTitle: () => seoTitle,
twitterDescription: () => seoDescription,
twitterImage: () => seoImage,
});
</script>

0 comments on commit d47e7cf

Please sign in to comment.