Skip to content

Commit

Permalink
feat: add seo/og
Browse files Browse the repository at this point in the history
  • Loading branch information
camera-2018 committed Jan 16, 2023
1 parent 7936fd4 commit 8e8e2fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
18 changes: 14 additions & 4 deletions frontend/app.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<script setup>
useHead({
title: 'Vitesse Nuxt 3',
title: 'JueJin | ByteDream',
link: [
{
rel: 'icon', type: 'image/png', href: '/nuxt.png',
},
{ rel: 'icon', type: 'image/png', href: '/nuxt.png' },
{ rel: 'canonical', href: 'https://bytedream.top/' },
{},
],
meta: [
{ name: 'description', content: 'Yet Another Blog In JueJin Style By ByteDream.' },
{ property: 'og:title', title: 'JueJin | ByteDream' },
{ property: 'og:site_name', siteName: 'JueJin | ByteDream' },
{ property: 'og:url', url: 'https://bytedream.top' },
{ property: 'og:type', type: 'website' },
{ robots: 'follow, index' },
{ name: 'image', property: 'og:image', image: 'https://picxyxsw.oss-cn-hangzhou.aliyuncs.com/20230116155200.png' },
{ property: 'og:description', content: 'Yet Another Blog In JueJin Style By ByteDream' },
],
})
</script>
Expand Down
10 changes: 10 additions & 0 deletions frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ export default defineNuxtConfig({
nitro: {
preset: 'vercel',
},
app: {
head: {
charset: 'UTF-8',
viewport: 'width=device-width',
title: 'JueJin | ByteDream',
meta: [
{ name: 'description', content: 'Yet Another Blog In JueJin Style By ByteDream.' },
],
},
},
})

0 comments on commit 8e8e2fd

Please sign in to comment.