Skip to content

Commit d4585ad

Browse files
feat: improve SEO
1 parent 9df2ee8 commit d4585ad

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

nuxt.config.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
const NAME = 'Horu'
2+
const DESCRIPTION = 'Horu\'s personal website'
3+
14
export default defineNuxtConfig({
25
future: {
36
compatibilityVersion: 4,
@@ -13,8 +16,18 @@ export default defineNuxtConfig({
1316
head: {
1417
charset: 'utf-8',
1518
viewport: 'width=device-width, initial-scale=1',
16-
title: 'Horu.me',
19+
title: NAME,
1720
htmlAttrs: { lang: 'en' },
21+
meta: [
22+
{ name: 'apple-mobile-web-app-title', content: NAME },
23+
{ name: 'application-name', content: NAME },
24+
{ name: 'twitter:title', content: NAME },
25+
{ name: 'twitter:description', content: DESCRIPTION },
26+
{ name: 'twitter:card', content: 'summary' },
27+
{ property: 'og:title', content: NAME },
28+
{ property: 'og:description', content: DESCRIPTION },
29+
{ property: 'og:type', content: 'website' },
30+
],
1831
},
1932
},
2033

0 commit comments

Comments
 (0)