-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
91 lines (89 loc) · 3.2 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
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 { BLOG_URL } from "./src/constants";
import tailwind from "@astrojs/tailwind";
import starlightImageZoom from "starlight-image-zoom";
import starlightLinksValidator from "starlight-links-validator";
// https://astro.build/config
export default defineConfig({
site: import.meta.env.DEV ? "http://localhost:4321/" : BLOG_URL,
integrations: [
starlight({
lastUpdated: true,
title: "Arsen Melikyan",
favicon: "/favicon.ico",
plugins: [
starlightBlog({
authors: {
bugron: {
name: "Arsen Melikyan",
title: "Staff Software Engineer @ ServiceTitan",
picture: "/arsen-avatar.jpg",
url: "https://melikyan.dev",
},
},
}),
starlightImageZoom(),
starlightLinksValidator(),
],
logo: {
dark: "/public/logo-dark.png",
light: "/public/logo-light.png",
alt: "Arsen Melikyan's personal blog logo",
replacesTitle: true,
},
editLink: {
baseUrl:
"https://github.com/bugron/bugron.github.io/edit/astro/",
},
customCss: ["./src/styles/custom.css"],
components: {
MarkdownContent:
"./src/components/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",
},
social: {
github: "https://github.com/bugron",
linkedin: "https://www.linkedin.com/in/arsen-melikyan/",
"x.com": "https://twitter.com/bugron1",
youtube: "https://www.youtube.com/@bugron",
},
head: [
{
tag: "script",
attrs: {
src: "https://www.googletagmanager.com/gtag/js?id=G-EWP344X6RY",
type: "text/partytown",
async: true,
},
},
{
tag: "script",
type: "text/partytown",
content: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-EWP344X6RY');
`,
},
],
}),
compress(),
robotsTxt(),
partytown({
config: {
forward: ["dataLayer.push"],
},
}),
tailwind(),
],
});