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:
ccbikai 2025-05-24 18:51:11 +08:00
parent 1f213a1798
commit 970f9474fb
2 changed files with 13 additions and 1 deletions

View file

@ -1,10 +1,12 @@
<script setup> <script setup>
const { title, description, image } = useAppConfig() const { title, description, image } = useAppConfig()
useSeoMeta({ useSeoMeta({
title: `${title} - ${description}`, title: `${title} - ${description}`,
description, description,
ogType: 'website', ogType: 'website',
ogTitle: title, ogTitle: title,
ogSiteName: title,
ogDescription: description, ogDescription: description,
ogImage: image, ogImage: image,
twitterTitle: title, twitterTitle: title,
@ -30,6 +32,10 @@ useHead({
type: 'image/png', type: 'image/png',
href: '/icon-192.png', href: '/icon-192.png',
}, },
{
rel: 'apple-touch-icon',
href: '/apple-touch-icon.png',
},
], ],
}) })
</script> </script>

View file

@ -2,12 +2,18 @@
Sink provides some configuration options, which can be referred to in [.env.example](../.env.example). 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` ## `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` ## `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. Sets the default length of the generated SLUG.
## `NUXT_REDIRECT_STATUS_CODE` ## `NUXT_REDIRECT_STATUS_CODE`