mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-22 18:21:33 +08:00
Built resume template
This commit is contained in:
46
astro.config.mjs
Normal file
46
astro.config.mjs
Normal file
@ -0,0 +1,46 @@
|
||||
import { defineConfig } from 'astro/config'
|
||||
import mdx from '@astrojs/mdx'
|
||||
import tailwind from '@astrojs/tailwind'
|
||||
import sitemap from '@astrojs/sitemap'
|
||||
import { remarkReadingTime } from './src/utils/remarkReadingTime.ts'
|
||||
import remarkUnwrapImages from 'remark-unwrap-images'
|
||||
import rehypeExternalLinks from 'rehype-external-links'
|
||||
import expressiveCode from 'astro-expressive-code'
|
||||
import { expressiveCodeOptions } from './src/site.config'
|
||||
|
||||
import vercel from '@astrojs/vercel/serverless'
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://example.me',
|
||||
integrations: [
|
||||
expressiveCode(expressiveCodeOptions),
|
||||
tailwind({
|
||||
applyBaseStyles: false
|
||||
}),
|
||||
sitemap(),
|
||||
mdx()
|
||||
],
|
||||
markdown: {
|
||||
remarkPlugins: [remarkUnwrapImages, remarkReadingTime],
|
||||
rehypePlugins: [
|
||||
[
|
||||
rehypeExternalLinks,
|
||||
{
|
||||
target: '_blank',
|
||||
rel: ['nofollow, noopener, noreferrer']
|
||||
}
|
||||
]
|
||||
],
|
||||
remarkRehype: {
|
||||
footnoteLabelProperties: {
|
||||
className: ['']
|
||||
}
|
||||
}
|
||||
},
|
||||
prefetch: true,
|
||||
output: 'server',
|
||||
adapter: vercel({
|
||||
webAnalytics: { enabled: true }
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user