-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.config.ts
65 lines (62 loc) · 2.14 KB
/
site.config.ts
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
import type { SiteConfig } from '@/types'
import type { AstroExpressiveCodeOptions } from 'astro-expressive-code'
export const siteConfig: SiteConfig = {
// Used as both a meta property (src/components/BaseHead.astro L:31 + L:49) & the generated satori png (src/pages/og-image/[slug].png.ts)
author: 'Tomasz Tendera',
// Meta property used to construct the meta title property, found in src/components/BaseHead.astro L:11
title: 'Tenderenden Main page',
// Meta property used as the default description meta property
description: 'Tomasz Tendera Personal site',
// HTML lang property, found in src/layouts/Base.astro L:18
lang: 'en-GB',
// Meta property, found in src/components/BaseHead.astro L:42
ogLocale: 'en_GB',
// Date.prototype.toLocaleDateString() parameters, found in src/utils/date.ts.
date: {
locale: 'en-GB',
options: {
day: 'numeric',
month: 'short',
year: 'numeric'
}
}
}
export const menuLinks: Array<{ title: string; path: string }> = [
{
title: 'Home',
path: '/'
},
{
title: 'Blog',
path: '/blog/'
}
]
// https://expressive-code.com/reference/configuration/
export const expressiveCodeOptions: AstroExpressiveCodeOptions = {
// One dark, one light theme => https://expressive-code.com/guides/themes/#available-themes
themes: ['dracula', 'github-light'],
themeCssSelector(theme, { styleVariants }) {
// If one dark and one light theme are available
// generate theme CSS selectors compatible with cactus-theme dark mode switch
if (styleVariants.length >= 2) {
const baseTheme = styleVariants[0]?.theme
const altTheme = styleVariants.find((v) => v.theme.type !== baseTheme?.type)?.theme
if (theme === baseTheme || theme === altTheme) return `[data-theme='${theme.type}']`
}
// return default selector
return `[data-theme="${theme.name}"]`
},
useThemedScrollbars: false,
styleOverrides: {
frames: {
frameBoxShadowCssValue: 'none'
},
uiLineHeight: 'inherit',
codeFontSize: '0.875rem',
codeLineHeight: '1.7142857rem',
borderRadius: '4px',
codePaddingInline: '1rem',
codeFontFamily:
'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;'
}
}