-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
68 lines (67 loc) · 2.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
import { defineConfig } from "astro/config";
import starlightBlog from "starlight-blog";
import starlight from "@astrojs/starlight";
import partytown from "@astrojs/partytown";
import compress from "astro-compress";
import robotsTxt from "astro-robots-txt";
import sitemap from '@astrojs/sitemap';
import { BLOG_URL } from "./src/contants";
import tailwind from "@astrojs/tailwind";
export default defineConfig({
site: BLOG_URL,
integrations: [
starlightBlog({
authors: {
danielcristho: {
name: "Daniel Pepuho",
title: "",
url: "https://danielcristho.site",
},
},
}),
starlight({
lastUpdated: true,
title: "danielcristho.",
defaultLocale: "root",
locales: {
root: {
label: "English",
lang: "en",
},
"id": {
label:"Bahasa Indonesia",
lang:"id"
},
},
editLink: {
baseUrl:
"https://github.com/danielcristho/astrdocs/edit/main",
},
customCss: ["./src/styles/custom.css"],
components: {
MarkdownContent: "starlight-blog/overrides/MarkdownContent.astro",
Sidebar: "starlight-blog/overrides/Sidebar.astro",
ThemeSelect: "starlight-blog/overrides/ThemeSelect.astro",
TableOfContents: "./src/components/TableOfContents.astro",
Header: "./src/components/Header.astro",
Head: "./src/components/Head.astro",
Footer: "/src/components/Footer.astro",
Truncate: "/src/components/Truncate.astro"
},
social: {
linkedin: "https://www.linkedin.com/in/daniel-pepuho/",
github: "https://github.com/danielcristho",
"x.com": "https://twitter.com/chrstdan"
},
}),
compress(),
robotsTxt(),
sitemap(),
partytown({
config: {
forward: ["dataLayer.push"],
},
}),
tailwind(),
],
});