refactor: code cleanup

This commit is contained in:
saicaca authored and saica.go committed 2024-02-18 18:26:40 +08:00
1 parent 3cd21c2da9
commit af29b9160f
51 files changed
+872 -2264

No files matched your search

+2 -4
View File
@@ -1,5 +1,4 @@
import tailwind from "@astrojs/tailwind"
import yaml from "@rollup/plugin-yaml"
import Compress from "astro-compress"
import icon from "astro-icon"
import { defineConfig } from "astro/config"
@@ -9,7 +8,7 @@ import rehypeKatex from "rehype-katex"
import rehypeSlug from "rehype-slug"
import remarkMath from "remark-math"
import { remarkReadingTime } from "./src/plugins/remark-reading-time.mjs"
import vue from "@astrojs/vue"
import svelte from "@astrojs/svelte"
const oklchToHex = (str) => {
const DEFAULT_HUE = 250
@@ -38,7 +37,7 @@ export default defineConfig({
Compress({
Image: false,
}),
vue()
svelte(),
],
markdown: {
remarkPlugins: [remarkMath, remarkReadingTime],
@@ -71,7 +70,6 @@ export default defineConfig({
],
},
vite: {
plugins: [yaml()],
css: {
preprocessorOptions: {
stylus: {