-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
42 lines (36 loc) · 1.1 KB
/
astro.config.mjs
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
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import icon from "astro-icon";
import robotsTxt from "astro-robots-txt";
import wikiLinkPlugin from "remark-wiki-link";
import { getNotesPermalinks, slugify } from "./src/helpers/notes";
import besomwebcrafthealthcheck from "@besomwebcraft/astro-healthcheck";
import netlify from "@astrojs/netlify";
// TODO: This is being applied in all collections, check about it
export default defineConfig({
site: "https://jeroen.wtf",
integrations: [tailwind(), icon(), robotsTxt(), besomwebcrafthealthcheck()],
output: "static",
trailingSlash: "never",
build: {
format: "file",
},
markdown: {
remarkPlugins: [
[
wikiLinkPlugin,
{
permalinks: getNotesPermalinks(),
pageResolver: (pageName) => {
let slug = slugify(pageName);
slug = slug.replace("02-areas/", "");
return [slug];
},
aliasDivider: "|",
hrefTemplate: (permalink) => `/notes/${permalink}`,
},
],
],
},
adapter: netlify(),
});