27 lines
697 B
JavaScript
27 lines
697 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import sitemap from '@astrojs/sitemap';
|
|
import { unified } from '@astrojs/markdown-remark';
|
|
import rehypeMathjax from 'rehype-mathjax';
|
|
import remarkMath from 'remark-math';
|
|
import remarkHexoLinkCards from './src/lib/remarkHexoLinkCards.mjs';
|
|
|
|
export default defineConfig({
|
|
site: 'https://blog.biss.click',
|
|
output: 'static',
|
|
integrations: [sitemap()],
|
|
markdown: {
|
|
processor: unified({
|
|
remarkPlugins: [remarkMath, remarkHexoLinkCards],
|
|
rehypePlugins: [rehypeMathjax],
|
|
}),
|
|
shikiConfig: {
|
|
theme: 'github-dark',
|
|
wrap: true,
|
|
langAlias: {
|
|
BASH: 'bash',
|
|
YAML: 'yaml',
|
|
},
|
|
},
|
|
},
|
|
});
|