-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
44 lines (41 loc) · 1.16 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
42
43
44
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
import remarkToc from 'remark-toc';
import vue from '@astrojs/vue';
import robotsTxt from 'astro-robots-txt';
import tailwind from '@astrojs/tailwind';
import mdx from '@astrojs/mdx';
import taxonomyDb from './.frontmatter/database/taxonomyDb.json';
import m2dx from 'astro-m2dx';
import pagefind from 'astro-pagefind';
/** @type {import('astro-m2dx').Options} */
const m2dxOptions = {
autoImports: true,
exportComponents: true,
};
const SITE = 'https://bhdouglass.com/';
const categoryPages = taxonomyDb.taxonomy.categories.map((category) => `${SITE}blog/${category}/`);
// https://astro.build/config
export default defineConfig({
site: SITE,
server: {
host: true
},
markdown: {
syntaxHighlight: 'prism'
},
integrations: [
tailwind({ config: { applyBaseStyles: false } }),
vue(),
mdx(),
sitemap({
customPages: ['https://bhdouglass.com/resume/'],
filter: (page) => !categoryPages.includes(page),
}),
robotsTxt({ sitemapBaseFileName: 'sitemap' }),
pagefind(),
],
markdown: {
remarkPlugins: [[m2dx, m2dxOptions], remarkToc],
}
});