Skip to content

Commit b620de9

Browse files
committed
docs: 📚 sEO optimization
1 parent 1ab7c39 commit b620de9

File tree

4 files changed

+46
-7
lines changed

4 files changed

+46
-7
lines changed

Diff for: docs/zebra-swiper-docs/.vitepress/config.mts

+17
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@ import { template } from './configs/template.mjs'
66
export default defineConfig({
77
title: 'ZebraSwiper',
88
description: '专为多端设计的高性能轮播组件库,支持多种复杂的 3D 轮播效果。',
9+
sitemap: {
10+
hostname: 'https://swiper.zebraui.com/',
11+
transformItems: (items) => {
12+
const modifyItems: typeof items = []
13+
for (const item of items) {
14+
if (item.url.includes('404')) {
15+
continue
16+
}
17+
modifyItems.push({
18+
...item,
19+
changefreq: 'daily',
20+
priority: 1
21+
})
22+
}
23+
return modifyItems
24+
}
25+
},
926
head,
1027
themeConfig: {
1128
logo: { light: '/logo-line.svg', dark: '/logo-line-dark.svg' },

Diff for: docs/zebra-swiper-docs/.vitepress/configs/head.mts

+27-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,35 @@ import type { UserConfig } from 'vitepress'
22

33
export const head = [
44
['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo-line.svg' }],
5-
// [
6-
// 'link',
7-
// { rel: 'icon', type: 'image/png', href: '/vitepress-logo-mini.png' }
8-
// ],
95
['meta', { name: 'robots', content: 'index, follow' }],
10-
['meta', { name: 'application-name', content: 'Zebra-Swiper' }],
11-
['meta', { name: 'apple-mobile-web-app-title', content: 'Zebra-Swiper' }],
6+
['meta', { name: 'author', content: 'Zebra' }],
7+
[
8+
'meta',
9+
{
10+
name: 'description',
11+
content:
12+
'A high-performance carousel component library designed for multiple terminals, supporting a variety of complex 3D carousel effects.'
13+
}
14+
],
15+
[
16+
'meta',
17+
{ name: 'keywords', content: 'zebra,swiper,zebra-ui,zebra-swiper,3D' }
18+
],
19+
['meta', { name: 'application-name', content: 'ZebraSwiper' }],
20+
['meta', { name: 'apple-mobile-web-app-title', content: 'ZebraSwiper' }],
1221
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
13-
['meta', { name: 'og:site_name', content: 'Zebra-Swiper' }],
22+
['meta', { property: 'og:site_name', content: 'ZebraSwiper' }],
23+
[
24+
'meta',
25+
{
26+
property: 'og:description',
27+
content:
28+
'A high-performance carousel component library designed for multiple terminals, supporting a variety of complex 3D carousel effects.'
29+
}
30+
],
31+
['meta', { property: 'og:image', content: '/swiper-cover.png' }],
32+
['meta', { property: 'og:url', content: 'https://swiper.zebraui.com/' }],
33+
['meta', { property: 'og:type', content: 'website' }],
1434
['meta', { name: 'baidu-site-verification', content: 'codeva-NpHtnN32z6' }],
1535
[
1636
'script',

Diff for: docs/zebra-swiper-docs/public/robots.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

Diff for: docs/zebra-swiper-docs/public/swiper-cover.png

764 KB
Loading

0 commit comments

Comments
 (0)