20 lines
511 B
JavaScript
20 lines
511 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import minify from 'astro-min';
|
|
import metaTags from "astro-meta-tags";
|
|
import rehypeSlug from 'rehype-slug'
|
|
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
integrations: [minify(), metaTags()],
|
|
markdown: {
|
|
rehypePlugins: [
|
|
rehypeSlug,
|
|
[rehypeAutolinkHeadings, { behavior: 'prepend' }],
|
|
],
|
|
drafts: true,
|
|
shikiConfig: {
|
|
theme: 'dracula',
|
|
},
|
|
},
|
|
}); |