forked from kirontoo/astro-theme-cody
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
30 lines (26 loc) · 838 Bytes
/
astro.config.mjs
File metadata and controls
30 lines (26 loc) · 838 Bytes
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
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import { remarkReadingTime } from './src/utils/remark-reading-time.mjs';
import tailwind from "@astrojs/tailwind";
// https://astro.build/config
export default defineConfig({
site: 'https://astro-theme-cody.netlify.app',
integrations: [mdx(), sitemap(), tailwind()],
// NOTE: Make sure this matches your supported languages in the file: src/consts.ts
i18n: {
defaultLocale: "en",
locales: ["en", "es"]
},
markdown: {
remarkPlugins: [remarkReadingTime],
syntaxHighlight: 'shiki',
shikiConfig: {
// https://docs.astro.build/en/guides/markdown-content/#syntax-highlighting
themes: {
light: 'catppuccin-mocha',
dark: 'catppuccin-latte',
},
}
},
});