diff --git a/.vitepress/config.mts b/.vitepress/config.mjs
similarity index 93%
rename from .vitepress/config.mts
rename to .vitepress/config.mjs
index c06344f..902cb0e 100644
--- a/.vitepress/config.mts
+++ b/.vitepress/config.mjs
@@ -1,10 +1,6 @@
-///
-import { defineConfig, type HeadConfig } from "vitepress"
-import svgLoader from 'vite-svg-loader'
+import { defineConfig } from 'vitepress'
-// https://vitepress.dev/reference/site-config
-
-const head:HeadConfig[] = [
+const head = [
["link", { rel: "icon", href: "/favicon.ico" }],
["link", { rel: "manifest", href: "/site.webmanifest" }],
]
@@ -45,11 +41,11 @@ if (process.env.NODE_ENV === 'production') {
)
}
+// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Maicss",
description: "Miacss' website pyqt 中文 教程 pyqt5 pyqt6",
head,
- srcDir: "./pages",
lang: "zh-CN",
cleanUrls: true,
themeConfig: {
@@ -123,9 +119,9 @@ export default defineConfig({
// message: 'Released under the MIT License.',
copyright: "Copyright © 2019-present Maicss",
},
- // search: {
- // provider: 'local'
- // },
+ search: {
+ provider: 'local'
+ },
// carbonAds: {
// code: 'your-carbon-code',
@@ -144,9 +140,6 @@ export default defineConfig({
}
},
vite: {
- plugins: [svgLoader({
- defaultImport: 'component'
- })],
build: {
rollupOptions: {
output: {
@@ -156,4 +149,4 @@ export default defineConfig({
}
},
// buildEnd: genFeed
-});
+})
diff --git a/.vitepress/getFeed.ts b/.vitepress/getFeed.ts
deleted file mode 100644
index 677c366..0000000
--- a/.vitepress/getFeed.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import path from 'path'
-import { writeFileSync } from 'fs'
-import { Feed } from 'feed'
-import { createContentLoader, type SiteConfig } from 'vitepress'
-
-const baseUrl = `https://blog.vuejs.org`
-
-export async function genFeed(config: SiteConfig) {
- const feed = new Feed({
- title: 'The Vue Point',
- description: 'The official blog for the Vue.js project',
- id: baseUrl,
- link: baseUrl,
- language: 'en',
- image: 'https://vuejs.org/images/logo.png',
- favicon: `${baseUrl}/favicon.ico`,
- copyright:
- 'Copyright (c) 2021-present, Yuxi (Evan) You and blog contributors'
- })
-
- const posts = await createContentLoader('posts/*.md', {
- excerpt: true,
- render: true
- }).load()
-
- posts.sort(
- (a, b) =>
- +new Date(b.frontmatter.date as string) -
- +new Date(a.frontmatter.date as string)
- )
-
- for (const { url, excerpt, frontmatter, html } of posts) {
- feed.addItem({
- title: frontmatter.title,
- id: `${baseUrl}${url}`,
- link: `${baseUrl}${url}`,
- description: excerpt,
- content: html,
- author: [
- {
- name: frontmatter.author,
- link: frontmatter.twitter
- ? `https://twitter.com/${frontmatter.twitter}`
- : undefined
- }
- ],
- date: frontmatter.date
- })
- }
-
- writeFileSync(path.join(config.outDir, 'feed.rss'), feed.rss2())
-}
\ No newline at end of file
diff --git a/.vitepress/theme/Article.vue b/.vitepress/theme/Article.vue
deleted file mode 100644
index c598d8d..0000000
--- a/.vitepress/theme/Article.vue
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Previous Article
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.vitepress/theme/Author.vue b/.vitepress/theme/Author.vue
deleted file mode 100644
index 1c14604..0000000
--- a/.vitepress/theme/Author.vue
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
- Authors
-
-
-
-
-
\ No newline at end of file
diff --git a/.vitepress/theme/BlogIndex.vue b/.vitepress/theme/BlogIndex.vue
index 77bdfa4..af0b25b 100644
--- a/.vitepress/theme/BlogIndex.vue
+++ b/.vitepress/theme/BlogIndex.vue
@@ -1,12 +1,10 @@
-
+
diff --git a/.vitepress/theme/GiscusLayout.vue b/.vitepress/theme/GiscusLayout.vue
index 06b7c9b..2e1aea2 100644
--- a/.vitepress/theme/GiscusLayout.vue
+++ b/.vitepress/theme/GiscusLayout.vue
@@ -1,9 +1,10 @@
-
-
{
mapping="pathname"
term="Welcome to Maicss' site"
strict="0"
- :reactionsenabled="true"
+ reactionsenabled="1"
emitmetadata="0"
inputposition="top"
- theme="light"
+ loading="lazy"
+ :theme="isDark ? 'transparent_dark' : 'light'"
lang="zh-CN"
>
Loading comments...
-
+
-
+
@@ -209,13 +193,17 @@ onUnmounted(() => {