-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
95 lines (92 loc) · 2.39 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
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
site: 'https://constitutia.florin.page',
integrations: [starlight({
title: "Constituția României",
favicon: 'logo.png',
head: [{
tag: 'script',
attrs: {
src: 'https://www.googletagmanager.com/gtag/js?id=G-4WBYC08DN1',
defer: true
}
}, {
tag: 'script',
content: `window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-4WBYC08DN1');`
}],
logo: {
src: './public/images/logo2003.webp'
},
customCss: [
// Relative path to your custom CSS file
'./src/styles/custom.css',
],
defaultLocale: "root",
locales: {
root: {
label: "Română",
lang: "ro" // lang is required for root locales
}
},
social: {
github: "https://github.com/twentytwokhz/constitutie",
instagram: "https://instagram.com/constitutia.romaniei",
rss: "https://florin.page",
linkedin: "https://linkedin.com/in/florinbobis"
},
sidebar: [{
label: "Constituția",
items: [{
label: "Istoric",
link: "/constitutia/istoric"
}, {
label: "1952",
link: "/constitutia/1952"
}, {
label: "1952➡️1986",
link: "/1952-1986"
}, {
label: "1986",
link: "/constitutia/1986"
}, {
label: "1986➡️1991",
link: "/1986-1991"
}, {
label: "1991",
link: "/constitutia/1991"
}, {
label: "1991➡️2003",
link: "/1991-2003"
}, {
label: "2003",
link: "/constitutia/2003",
badge: { text: 'curentă', variant: 'tip' },
}]
}, {
label: "Referințe",
items: [{
label: "CD 1991🔗",
link: "https://www.cdep.ro/pls/dic/site2015.page?id=255",
attrs: {
target: '_blank'
}
}, {
label: "CD 2003🔗",
link: "https://www.cdep.ro/pls/dic/site2015.page?id=339",
attrs: {
target: '_blank'
}
}]
}],
lastUpdated: true,
editLink: {
baseUrl: 'https://github.com/twentytwokhz/constitutie/edit/master/'
}
}), react()]
});