-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
49 lines (48 loc) · 1.02 KB
/
astro.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { defineConfig } from "astro/config"
import remarkToc from "remark-toc"
import remarkCollapse from "remark-collapse"
import rehypeExternalLinks from "rehype-external-links"
import sitemap from "@astrojs/sitemap"
import UnoCSS from "unocss/astro"
import vue from "@astrojs/vue"
import mdx from "@astrojs/mdx"
// https://astro.build/config
export default defineConfig({
site: "https://timozander.de/",
integrations: [
mdx(),
UnoCSS({
injectReset: true,
injectEntry: true,
}),
sitemap({
filter: (page) => !page.match(/\/blog\/\d+\//),
}),
vue(),
],
markdown: {
remarkPlugins: [
remarkToc,
[
remarkCollapse,
{
test: "Table of contents",
},
],
],
rehypePlugins: [
[
rehypeExternalLinks,
{
rel: ["noreferrer", "noopener"],
target: "_blank",
},
],
],
shikiConfig: {
theme: "material-theme-ocean",
wrap: true,
},
extendDefaultPlugins: true,
},
})