Skip to content

Commit

Permalink
feat: add nuxt-seo-kit
Browse files Browse the repository at this point in the history
  • Loading branch information
MarleneJiang committed Jan 16, 2023
1 parent 6dfe1d2 commit 63e432c
Show file tree
Hide file tree
Showing 4 changed files with 245 additions and 16 deletions.
11 changes: 3 additions & 8 deletions frontend/app.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<script setup>
useHead({
title: 'Vitesse Nuxt 3',
link: [
{
rel: 'icon', type: 'image/png', href: '/nuxt.png',
},
],
})
// import { OgImageScreenshot, SeoKit } from 'nuxt-seo-kit'
</script>

<template>
<NuxtLayout>
<SeoKit />
<OgImageScreenshot />
<NuxtPage />
</NuxtLayout>
</template>
Expand Down
20 changes: 20 additions & 0 deletions frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,24 @@ export default defineNuxtConfig({
nitro: {
preset: 'vercel',
},
extends: [
'nuxt-seo-kit',
],
runtimeConfig: {
public: {
siteUrl: 'https://bytedream.top',
siteName: 'JueJin | ByteDream',
siteDescription: 'Yet Another Blog In JueJin Style By ByteDream',
language: 'zh-CN',
titleSeparator: '·',
trailingSlash: true,
},
indexable: true,
},
sitemap: {
hostname: 'https://bytedream.top',
},
head: {
ogTitleTemplate: '%s | ByteDream',
},
})
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"nuxt": "^3.0.0",
"nuxt-seo-kit": "^0.4.13",
"pinia": "^2.0.23",
"tailwindcss": "^3.2.4",
"typescript": "^4.9.3",
Expand Down
Loading

0 comments on commit 63e432c

Please sign in to comment.