Skip to content

Commit d7c8603

Browse files
docs: home page redesign (#18257)
Co-authored-by: Simon Le Marchant <simon@marchantweb.com>
1 parent d21bdbf commit d7c8603

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+8076
-161
lines changed

docs/.vitepress/config.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,30 @@ export default defineConfig({
7777
'link',
7878
{ rel: 'alternate', type: 'application/rss+xml', href: '/blog.rss' },
7979
],
80+
['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }],
81+
[
82+
'link',
83+
{
84+
rel: 'preconnect',
85+
href: 'https://fonts.gstatic.com',
86+
crossorigin: 'true',
87+
},
88+
],
89+
[
90+
'link',
91+
{
92+
rel: 'preload',
93+
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600&family=IBM+Plex+Mono:wght@400&display=swap',
94+
as: 'style',
95+
},
96+
],
97+
[
98+
'link',
99+
{
100+
rel: 'stylesheet',
101+
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600&family=IBM+Plex+Mono:wght@400&display=swap',
102+
},
103+
],
80104
['link', { rel: 'me', href: 'https://m.webtoo.ls/@vite' }],
81105
['meta', { property: 'og:type', content: 'website' }],
82106
['meta', { property: 'og:title', content: ogTitle }],
@@ -139,7 +163,8 @@ export default defineConfig({
139163

140164
footer: {
141165
message: `Released under the MIT License. (${commitRef})`,
142-
copyright: 'Copyright © 2019-present Evan You & Vite Contributors',
166+
copyright:
167+
'Copyright © 2019-present Yuxi (Evan) You & Vite Contributors',
143168
},
144169

145170
nav: [

docs/.vitepress/theme/components/AsideSponsors.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const sponsors = computed(() => {
2323
href="https://viteconf.org/?utm=vite-sidebar"
2424
target="_blank"
2525
>
26-
<img width="22" height="22" src="/viteconf.svg" />
26+
<img width="22" height="22" src="/viteconf.svg" alt="ViteConf Logo" />
2727
<span>
2828
<p class="extra-info">Building Together</p>
2929
<p class="heading">ViteConf 24 - Oct 3</p>

docs/.vitepress/theme/components/BlogIndex.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { data as posts } from './blog.data'
2+
import { data as posts } from '../../../_data/blog.data'
33
44
function getDateTime(time: number) {
55
return new Date(time).toISOString()

docs/.vitepress/theme/components/HomeSponsors.vue

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)