mirror of
https://github.com/YouHaveTrouble/youhavetrouble.github.io.git
synced 2026-05-11 22:06:56 +00:00
switch to Astro
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { defineConfig } from 'astro/config'
|
||||
import svelte from '@astrojs/svelte'
|
||||
import mdx from '@astrojs/mdx'
|
||||
import remarkGfm from 'remark-gfm'
|
||||
import remarkSmartypants from 'remark-smartypants'
|
||||
import rehypeExternalLinks from 'rehype-external-links'
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://youhavetrouble.me',
|
||||
integrations: [mdx(), svelte()],
|
||||
markdown: {
|
||||
shikiConfig: {
|
||||
theme: 'nord',
|
||||
},
|
||||
remarkPlugins: [remarkGfm, remarkSmartypants],
|
||||
rehypePlugins: [
|
||||
[
|
||||
rehypeExternalLinks,
|
||||
{
|
||||
target: '_blank',
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user