mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-16 21:45:14 +00:00
feat: Implement SEO optimizations and card hover effect
This commit is contained in:
parent
60ddd120c4
commit
d7ad13d26c
@ -45,10 +45,31 @@ function getSidebar(dir, sidebarTitle) {
|
||||
|
||||
export default defineConfig({
|
||||
head: [
|
||||
['link', { rel: 'icon', href: '/logo.svg' }]
|
||||
['link', { rel: 'icon', href: '/logo.svg' }],
|
||||
// Open Graph / Facebook Meta Tags
|
||||
['meta', { property: 'og:type', content: 'website' }],
|
||||
['meta', { property: 'og:url', content: 'https://promptsdoc.itycon.cn/' }], // Use the provided hostname
|
||||
['meta', { property: 'og:title', content: 'AI System Prompts Hub' }], // Uses global title
|
||||
['meta', { property: 'og:description', content: 'A collection of system prompts for various AI tools.' }], // Uses global description
|
||||
['meta', { property: 'og:image', content: 'https://promptsdoc.itycon.cn/logo.svg' }], // Placeholder, consider a more descriptive image
|
||||
|
||||
// Twitter Meta Tags
|
||||
['meta', { property: 'twitter:card', content: 'summary_large_image' }],
|
||||
['meta', { property: 'twitter:url', content: 'https://promptsdoc.itycon.cn/' }], // Use the provided hostname
|
||||
['meta', { property: 'twitter:title', content: 'AI System Prompts Hub' }], // Uses global title
|
||||
['meta', { property: 'twitter:description', content: 'A collection of system prompts for various AI tools.' }], // Uses global description
|
||||
['meta', { property: 'twitter:image', content: 'https://promptsdoc.itycon.cn/logo.svg' }], // Placeholder, consider a more descriptive image
|
||||
// Canonical URL
|
||||
['link', { rel: 'canonical', href: 'https://promptsdoc.itycon.cn' + (typeof window !== 'undefined' ? window.location.pathname : '') }],
|
||||
// Import custom styles
|
||||
['link', { rel: 'stylesheet', href: '/.vitepress/styles/custom.css' }],
|
||||
],
|
||||
title: 'AI System Prompts Hub',
|
||||
description: 'A collection of system prompts for various AI tools.',
|
||||
lastUpdated: true, // Enable last updated timestamp
|
||||
sitemap: {
|
||||
hostname: 'https://promptsdoc.itycon.cn'
|
||||
},
|
||||
|
||||
themeConfig: {
|
||||
logo: '/logo.svg',
|
||||
|
||||
8
docs/.vitepress/styles/custom.css
Normal file
8
docs/.vitepress/styles/custom.css
Normal file
@ -0,0 +1,8 @@
|
||||
/* Styles for VitePress Home Features cards */
|
||||
article.box {
|
||||
transition: transform 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
article.box:hover {
|
||||
transform: scale(1.05); /* Scales up by 5% */
|
||||
}
|
||||
15
vercel.json
Normal file
15
vercel.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"redirects": [
|
||||
{
|
||||
"source": "/(.*)",
|
||||
"destination": "https://promptsdoc.itycon.cn/$1",
|
||||
"permanent": true,
|
||||
"has": [
|
||||
{
|
||||
"type": "host",
|
||||
"value": "promptsdoc.vercel.app"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user