docs: improve SEO and redirect root to /zh/ (#846)

docs: improve SEO meta tags and redirect root to /zh/

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dream Hunter
2026-02-25 15:23:43 +08:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 2b33d953fa
commit 0df74ee5cc
4 changed files with 34 additions and 33 deletions
+13 -2
View File
@@ -4,6 +4,7 @@ import { en } from './en'
export default defineConfig({
title: "Temp Mail Doc",
description: 'CloudFlare 免费收发临时域名邮箱 | Free temporary domain email on CloudFlare',
lang: 'zh-CN',
lastUpdated: true,
locales: {
@@ -13,12 +14,22 @@ export default defineConfig({
head: [
['link', { rel: 'icon', type: 'image/png', href: '/logo.png' }],
['meta', { name: 'theme-color', content: '#5f67ee' }],
['meta', { name: 'robots', content: 'index, follow' }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:locale', content: 'Temp Mail Doc' }],
['meta', { property: 'og:title', content: 'Temp Mail Doc' }],
['meta', { property: 'og:locale', content: 'zh_CN' }],
['meta', { property: 'og:locale:alternate', content: 'en_US' }],
['meta', { property: 'og:title', content: 'Temp Mail - CloudFlare 临时邮箱' }],
['meta', { property: 'og:description', content: 'CloudFlare 免费收发临时域名邮箱,支持多域名、附件、Telegram Bot、Webhook、SMTP/IMAP' }],
['meta', { property: 'og:site_name', content: 'Temp Mail' }],
['meta', { property: 'og:image', content: 'https://temp-mail-docs.awsl.uk/logo.png' }],
['meta', { property: 'og:url', content: 'https://temp-mail-docs.awsl.uk' }],
['meta', { name: 'twitter:card', content: 'summary' }],
['meta', { name: 'twitter:title', content: 'Temp Mail - CloudFlare 临时邮箱' }],
['meta', { name: 'twitter:description', content: 'CloudFlare 免费收发临时域名邮箱' }],
['meta', { name: 'twitter:image', content: 'https://temp-mail-docs.awsl.uk/logo.png' }],
['link', { rel: 'alternate', hreflang: 'zh-Hans', href: 'https://temp-mail-docs.awsl.uk/zh/' }],
['link', { rel: 'alternate', hreflang: 'en', href: 'https://temp-mail-docs.awsl.uk/en/' }],
['link', { rel: 'alternate', hreflang: 'x-default', href: 'https://temp-mail-docs.awsl.uk/zh/' }],
],
sitemap: {
hostname: 'https://temp-mail-docs.awsl.uk',
+6 -1
View File
@@ -3,7 +3,12 @@ import { defineConfig, type DefaultTheme } from 'vitepress'
export const en = defineConfig({
title: "Temp Mail Doc",
lang: 'en-US',
description: 'CloudFlare Free sending and receiving of temporary domain name mailboxes',
description: 'Free temporary domain email powered by CloudFlare Workers, with multi-domain, attachments, Telegram Bot, Webhook, SMTP/IMAP support',
head: [
['meta', { property: 'og:locale', content: 'en_US' }],
['meta', { property: 'og:description', content: 'Free temporary domain email powered by CloudFlare Workers, with multi-domain, attachments, Telegram Bot, Webhook, SMTP/IMAP support' }],
],
themeConfig: {
nav: nav(),
+6 -1
View File
@@ -3,7 +3,12 @@ import { defineConfig, type DefaultTheme } from 'vitepress'
export const zh = defineConfig({
title: "临时邮箱文档",
lang: 'zh-Hans',
description: 'CloudFlare 免费收发 临时域名邮箱',
description: 'CloudFlare 免费收发临时域名邮箱,支持多域名、附件、Telegram Bot、Webhook、SMTP/IMAP',
head: [
['meta', { property: 'og:locale', content: 'zh_CN' }],
['meta', { property: 'og:description', content: 'CloudFlare 免费收发临时域名邮箱,支持多域名、附件、Telegram Bot、Webhook、SMTP/IMAP' }],
],
themeConfig: {
nav: nav(),