-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuseSeo.ts
26 lines (25 loc) · 881 Bytes
/
useSeo.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { useSeoMeta } from '#imports'
// NB: It's important to change the default value of every metadata here.
export function useSeo({
title = 'Default Title',
description = 'This is the default description, let me tell you all about it.',
ogTitle = 'Default Title',
ogDescription = 'This is the default description, let me tell you all about it.',
ogImageUrl = 'https://example.com/image.png',
twitterTitle = 'Default Title',
twitterDescription = 'This is the default description, let me tell you all about it.',
twitterImage = 'https://example.com/image.png',
} = {}) {
useSeoMeta({
title,
description,
ogTitle,
ogDescription,
ogImageUrl,
twitterTitle,
twitterCard: 'summary_large_image',
twitterDescription,
twitterImage,
mobileWebAppCapable: 'yes',
})
}