feat: enhance SEO and mobile app meta properties
Improves SEO optimization and mobile app integration by: - Adding ogSiteName meta property for better social sharing - Including apple-touch-icon for iOS device support - Updating documentation for Worker deployment configuration - Clarifying preview mode duration (5 minutes) in documentation
This commit is contained in:
parent
1f213a1798
commit
970f9474fb
2 changed files with 13 additions and 1 deletions
|
|
@ -1,10 +1,12 @@
|
|||
<script setup>
|
||||
const { title, description, image } = useAppConfig()
|
||||
|
||||
useSeoMeta({
|
||||
title: `${title} - ${description}`,
|
||||
description,
|
||||
ogType: 'website',
|
||||
ogTitle: title,
|
||||
ogSiteName: title,
|
||||
ogDescription: description,
|
||||
ogImage: image,
|
||||
twitterTitle: title,
|
||||
|
|
@ -30,6 +32,10 @@ useHead({
|
|||
type: 'image/png',
|
||||
href: '/icon-192.png',
|
||||
},
|
||||
{
|
||||
rel: 'apple-touch-icon',
|
||||
href: '/apple-touch-icon.png',
|
||||
},
|
||||
],
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -2,12 +2,18 @@
|
|||
|
||||
Sink provides some configuration options, which can be referred to in [.env.example](../.env.example).
|
||||
|
||||
> When using Worker deployment, please note that variables with the `NUXT_PUBLIC_` prefix need to be configured in Workers' **Settings** -> **Build** -> **Variables and Secrets** and **Settings** -> **Variables and Secrets**.
|
||||
|
||||
## `NUXT_PUBLIC_PREVIEW_MODE`
|
||||
|
||||
Sets the site to demo mode, the generated links will expire after 24 hours, and the links cannot be edited or deleted.
|
||||
> If you are using Worker deployment, this variable needs to be configured in **Settings** -> **Build** -> **Variables and Secrets** and **Settings** -> **Variables and Secrets**.
|
||||
|
||||
Sets the site to demo mode, the generated links will expire after 5 minutes, and the links cannot be edited or deleted.
|
||||
|
||||
## `NUXT_PUBLIC_SLUG_DEFAULT_LENGTH`
|
||||
|
||||
> If you are using Worker deployment, this variable needs to be configured in **Settings** -> **Build** -> **Variables and Secrets** and **Settings** -> **Variables and Secrets**.
|
||||
|
||||
Sets the default length of the generated SLUG.
|
||||
|
||||
## `NUXT_REDIRECT_STATUS_CODE`
|
||||
|
|
|
|||
Loading…
Reference in a new issue