-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mjs
118 lines (112 loc) · 4.13 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightBlog from 'starlight-blog';
import { imageService } from "@unpic/astro/service";
import starlightCoolerCredit from 'starlight-cooler-credit'
import netlify from '@astrojs/netlify';
// https://astro.build/config
export default defineConfig({
image: {
service: imageService(),
},
site: 'https://www.rainsberger.ca',
integrations: [
starlight({
credits: true,
title: "Sarah Rainsberger",
logo: {
src: './src/assets/heartjay200.webp',
replacesTitle: true,
},
components: {
Footer: './src/components/ConditionalFooter.astro'
},
customCss: [
'./src/styles/custom.css',
],
head: [
{tag: "meta",
attrs: {
property: "og:image",
content: "/flatjay.jpg",
}
},
{tag: "meta",
attrs: {
name: "fedierse:creator",
content: "@[email protected]",
}
},
{tag: "script",
attrs: {
"data-goatcounter": "https://sarah-starlight.goatcounter.com/count",
async: true,
src: "//gc.zgo.at/count.js",
}
},
{ tag: "script",
attrs: {
defer: true,
src: "https://cloud.umami.is/script.js",
"data-website-id": "a0abfc56-ed61-426d-b0bb-5a046918e4c6"
}
}
],
social: {
github: 'https://github.com/sarah11918/starlight-blog',
mastodon: 'https://mastodon.social/@sarah11918',
blueSky: 'https://bsky.app/profile/sarah11918.rainsberger.ca',
discord: 'https://astro.build/chat',
twitter: 'https://twitter.com/sarah11918',
youtube: 'https://youtube.com/sarahrainsberger',
rss: 'https://www.rainsberger.ca/blog/rss.xml',
email: 'mailto:[email protected]',
},
sidebar: [
{ label: 'About', link: '/about/' },
{ label: 'Gear', link: '/gear/' },
{ label: 'Photography',
items: [
{ label: 'Photography Apps', link: '/photography/' },
{ label: '#SilentSunday', link: '/photography/silent-sunday/' },
{ label: '#ArtAdventCalendar 2024', link: '/photography/art-advent-calendar/' },
]
},
{ label: 'Choir Tech', link: '/choirtech/' },
{ label: 'Featured Posts',
items: [
{ label: '50 docs tips in 50 days', link: '/blog/50-docs-tips-in-50-days' },
]
},
{
label: 'Guides',
autogenerate: { directory: 'guides' },
// items: [
// Each item here is one entry in the navigation menu.
// { label: 'Example Guide', link: '/guides/example/' },
//],
},
// {
// label: 'Reference',
// autogenerate: { directory: 'reference' },
// },
],
plugins: [
starlightCoolerCredit({credit: {title: "Built with Starlight Blog", href: "https://github.com/HiDeoo/starlight-blog", description: "Get your own Starlight Blog!"}}),
starlightBlog({
authors: {
sarah: {
name: 'Sarah',
title: '',
picture: '/profile.jpg',
url: 'https://rainsberger.ca/about/',
}
},
recentPostCount: 5
}),
]
}),
],
output: 'static',
adapter: netlify(),
});