mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-17 16:01:22 +08:00
feat: add redirect
This commit is contained in:
@ -16,6 +16,15 @@ import react from '@astrojs/react'
|
|||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: 'https://blog.kazoottt.top',
|
site: 'https://blog.kazoottt.top',
|
||||||
|
redirects: {
|
||||||
|
'/articles': '/posts',
|
||||||
|
'/articles/[...slug]': '/blogs/[...slug]',
|
||||||
|
'/category': '/categories',
|
||||||
|
'/category/[...slug]': '/categories/[...slug]',
|
||||||
|
'/tag': '/tags',
|
||||||
|
'/tag/[...slug]': '/tags/[...slug]',
|
||||||
|
'/about': '/'
|
||||||
|
},
|
||||||
integrations: [
|
integrations: [
|
||||||
expressiveCode(expressiveCodeOptions),
|
expressiveCode(expressiveCodeOptions),
|
||||||
tailwind({
|
tailwind({
|
||||||
|
Reference in New Issue
Block a user