Update blog UI and image lightbox

This commit is contained in:
2026-05-10 14:26:59 +08:00
parent 0c71229dc0
commit 7a1787a5c6
49 changed files with 3665 additions and 1221 deletions

View File

@@ -1,4 +1,5 @@
import { defineConfig } from 'astro/config'
import type { AstroUserConfig } from 'astro'
import mdx from '@astrojs/mdx'
import react from '@astrojs/react'
@@ -22,6 +23,12 @@ import node from '@astrojs/node'
const adapterName = process.env.ASTRO_ADAPTER ?? 'vercel'
const adapter = adapterName === 'node' ? node({ mode: 'standalone' }) : vercel()
type AstroVitePlugin = NonNullable<
NonNullable<AstroUserConfig['vite']>['plugins']
>[number]
// Bun may keep Astro's Vite and the project-level Vite as separate package instances.
const tailwindPlugin = tailwindcss() as unknown as AstroVitePlugin
export default defineConfig({
site: 'https://nvme0n1p.dev',
@@ -77,7 +84,7 @@ export default defineConfig({
],
vite: {
plugins: [tailwindcss()],
plugins: [tailwindPlugin],
},
server: {