forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
133 lines (131 loc) · 4.25 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import { defineConfig } from "astro/config";
import remarkToc from "remark-toc";
import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import { remarkReadingTime } from "./remark-reading-time.mjs";
import { remarkModifiedTime } from "./remark-modified-time.mjs";
import partytown from "@astrojs/partytown";
import sitemap from "@astrojs/sitemap";
import jopSoftwarecookieconsent from "@jop-software/astro-cookieconsent";
import remarkMermaid from "remark-mermaidjs";
import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
site: "https://etienne.deneuve.xyz",
base: "",
redirects: {
"/blog": "/blog/page/1",
},
integrations: [sitemap(), partytown({
// Adds dataLayer.push as a forwarding-event.
config: {
forward: ["dataLayer.push"],
},
}), jopSoftwarecookieconsent({
categories: {
necessary: {
enabled: true,
// this category is enabled by default
readOnly: true, // this category cannot be disabled
},
analytics: {},
},
guiOptions: {
consentModal: {
layout: "bar inline",
position: "bottom",
flipButtons: true,
equalWeightButtons: true,
},
preferencesModal: {
layout: "box",
// position: 'left right',
flipButtons: false,
equalWeightButtons: true,
},
},
language: {
default: "fr",
translations: {
fr: {
consentModal: {
title: "J'utilise quelques cookies",
description:
"Je vous rassure, pas grand chose... mais je vais vous le dire.",
acceptAllBtn: "Tout accepter",
acceptNecessaryBtn: "Tout refuser",
showPreferencesBtn: "Gérer les préférences individuelles",
},
preferencesModal: {
title: "Gérer les préférences des cookies",
acceptAllBtn: "Tout accepter",
acceptNecessaryBtn: "Tout refuser",
savePreferencesBtn: "Accepter la sélection actuelle",
closeIconLabel: "Fermer la fenêtre modale",
sections: [
{
title: "Performance et analyse",
description:
"Ces cookies collectent des informations sur votre utilisation de ce site web. Toutes les données sont anonymisées et ne peuvent pas être utilisées pour vous identifier.",
linkedCategory: "analytics",
},
],
},
},
en: {
consentModal: {
title: "I use some cookies",
description: "But, I'll tell you about it...",
acceptAllBtn: "Accept all",
acceptNecessaryBtn: "Reject all",
showPreferencesBtn: "Manage Individual preferences",
},
preferencesModal: {
title: "Manage cookie preferences",
acceptAllBtn: "Accept all",
acceptNecessaryBtn: "Reject all",
savePreferencesBtn: "Accept current selection",
closeIconLabel: "Close modal",
sections: [
{
title: "Performance and Analytics",
description:
"These cookies collect information about how you use our website. All of the data is anonymized and cannot be used to identify you.",
linkedCategory: "analytics",
},
],
},
},
},
},
}), react()],
markdown: {
shikiConfig: {
// Choose from Shiki's built-in themes (or add your own)
// https://github.com/shikijs/shiki/blob/main/docs/themes.md
theme: "one-dark-pro",
// Add custom languages
// Note: Shiki has countless langs built-in, including .astro!
// https://github.com/shikijs/shiki/blob/main/docs/languages.md
langs: [],
// Enable word wrap to prevent horizontal scrolling
wrap: true,
},
// Example: Switch to use prism for syntax highlighting in Markdown
remarkPlugins: [
remarkToc,
remarkReadingTime,
remarkModifiedTime,
remarkMermaid,
],
rehypePlugins: [
rehypeSlug,
[
rehypeAutolinkHeadings,
{
behavior: "append",
},
],
],
},
});