|
1 | 1 | import { defineConfig } from 'vitepress' |
| 2 | +import { sitemapPlugin } from './plugins/sitemap.js' |
2 | 3 |
|
3 | 4 | export default defineConfig({ |
4 | 5 | title: 'Diffyne', |
5 | 6 | description: 'Blazing-fast, server-driven UI framework for PHP powered by a lightweight Virtual DOM + Diff Engine', |
6 | 7 |
|
7 | 8 | base: '/', |
8 | 9 |
|
9 | | - // Ignore dead links during build |
10 | | - ignoreDeadLinks: true, |
| 10 | + // Plugins |
| 11 | + vite: { |
| 12 | + plugins: [sitemapPlugin()] |
| 13 | + }, |
11 | 14 |
|
12 | 15 | head: [ |
13 | | - ['link', { rel: 'icon', href: '/favicon.ico' }], |
14 | | - ['meta', { name: 'theme-color', content: '#3eaf7c' }] |
| 16 | + // Favicon |
| 17 | + ['link', { rel: 'icon', href: '/logo.png', type: 'image/png' }], |
| 18 | + ['link', { rel: 'apple-touch-icon', href: '/logo.png' }], |
| 19 | + |
| 20 | + // Theme |
| 21 | + ['meta', { name: 'theme-color', content: '#3eaf7c' }], |
| 22 | + |
| 23 | + // Open Graph / Facebook |
| 24 | + ['meta', { property: 'og:type', content: 'website' }], |
| 25 | + ['meta', { property: 'og:url', content: 'https://diffyne.github.io/' }], |
| 26 | + ['meta', { property: 'og:title', content: 'Diffyne - Server-Driven UI for PHP' }], |
| 27 | + ['meta', { property: 'og:description', content: 'Blazing-fast, server-driven UI framework for PHP powered by a lightweight Virtual DOM + Diff Engine' }], |
| 28 | + ['meta', { property: 'og:image', content: 'https://diffyne.github.io/logo.png' }], |
| 29 | + ['meta', { property: 'og:image:width', content: '1200' }], |
| 30 | + ['meta', { property: 'og:image:height', content: '630' }], |
| 31 | + ['meta', { property: 'og:image:alt', content: 'Diffyne Logo' }], |
| 32 | + ['meta', { property: 'og:site_name', content: 'Diffyne' }], |
| 33 | + ['meta', { property: 'og:locale', content: 'en_US' }], |
| 34 | + |
| 35 | + // Twitter Card |
| 36 | + ['meta', { name: 'twitter:card', content: 'summary_large_image' }], |
| 37 | + ['meta', { name: 'twitter:url', content: 'https://diffyne.github.io/' }], |
| 38 | + ['meta', { name: 'twitter:title', content: 'Diffyne - Server-Driven UI for PHP' }], |
| 39 | + ['meta', { name: 'twitter:description', content: 'Blazing-fast, server-driven UI framework for PHP powered by a lightweight Virtual DOM + Diff Engine' }], |
| 40 | + ['meta', { name: 'twitter:image', content: 'https://diffyne.github.io/logo.png' }], |
| 41 | + ['meta', { name: 'twitter:image:alt', content: 'Diffyne Logo' }], |
| 42 | + ['meta', { name: 'twitter:creator', content: '@diffyne' }], |
| 43 | + ['meta', { name: 'twitter:site', content: '@diffyne' }], |
| 44 | + |
| 45 | + // Additional SEO |
| 46 | + ['meta', { name: 'author', content: 'Diffyne' }], |
| 47 | + ['meta', { name: 'keywords', content: 'PHP, Laravel, Server-Driven UI, Virtual DOM, Reactive Components, Livewire Alternative, PHP Framework' }], |
| 48 | + ['meta', { name: 'robots', content: 'index, follow' }], |
| 49 | + ['meta', { name: 'language', content: 'English' }], |
| 50 | + ['meta', { name: 'revisit-after', content: '7 days' }], |
| 51 | + |
| 52 | + // Additional meta |
| 53 | + ['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1.0' }], |
| 54 | + ['meta', { 'http-equiv': 'X-UA-Compatible', content: 'IE=edge' }] |
15 | 55 | ], |
16 | 56 |
|
17 | 57 | themeConfig: { |
18 | | - logo: '/logo.svg', |
| 58 | + logo: '/logo.png', |
19 | 59 |
|
20 | 60 | nav: [ |
21 | 61 | { text: 'Home', link: '/' }, |
|
0 commit comments