-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.js
64 lines (62 loc) · 1.83 KB
/
astro.config.js
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// noinspection JSUnusedGlobalSymbols
import { defineConfig } from 'astro/config'
import { rehypeShiki } from '@astrojs/markdown-remark'
import mdx from '@astrojs/mdx'
import remarkHeadingId from 'remark-custom-heading-id'
import remarkMath from 'remark-math'
import remarkDirective from 'remark-directive'
import { remarkGitInfo, remarkDirectives, remarkReadingTime } from './src/plugins/index'
import rehypeExternalLinks from 'rehype-external-links'
import rehypeMermaid from 'rehype-mermaid'
import rehypeKatex from 'rehype-katex'
import sitemap from '@astrojs/sitemap'
import svelte from '@astrojs/svelte'
import icon from 'astro-icon'
const site = 'https://infolektuell.de'
// https://astro.build/config
export default defineConfig({
site,
trailingSlash: 'always',
markdown: {
remarkRehype: {
footnoteLabel: 'Fußnoten',
footnoteBackLabel(referenceIndex, rereferenceIndex) {
return 'Hochspringen nach: ' + (referenceIndex + 1) + (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')
},
},
remarkPlugins: [remarkHeadingId, remarkGitInfo, remarkReadingTime, remarkDirective, remarkDirectives, remarkMath],
rehypePlugins: [
[
rehypeExternalLinks,
{
target: '_blank',
},
],
rehypeKatex,
rehypeMermaid,
rehypeShiki,
],
syntaxHighlight: false,
},
integrations: [
mdx(),
sitemap({
filter(page) {
return !page.startsWith(site + '/tags/') && !page.startsWith(site + '/legal/')
},
}),
svelte(),
icon({
iconDir: 'src/assets/icons',
include: {
'fa6-regular': ['address-card'],
'fa6-solid': ['angle-down', 'envelope', 'phone', 'mobile'],
'fa6-brands': ['github', 'linkedin', 'mastodon'],
tabler: ['brand-matrix'],
},
}),
],
server: {
port: 8080,
},
})