-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mjs
40 lines (35 loc) · 1.03 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
import { defineConfig } from "astro/config";
import blulocoTheme from "./src/bluloco-light.json";
// https://astro.build/config
import tailwind from "@astrojs/tailwind";
// https://astro.build/config
import image from "@astrojs/image";
// Set default layout for blog posts
import astroLayouts from "astro-layouts";
const layoutOptions = {
"pages/blog/*.md": "/src/layouts/BlogPost.astro",
};
// https://astro.build/config
export default defineConfig({
site: "https://jyao.me/",
markdown: {
remarkPlugins: [[astroLayouts, layoutOptions]],
shikiConfig: {
theme: blulocoTheme,
},
},
integrations: [
tailwind({
// https://docs.astro.build/en/guides/integrations-guide/tailwind/#configuring-the-integration
// Import custom base.css
config: { applyBaseStyles: false },
}),
image(
// https://docs.astro.build/en/guides/integrations-guide/image/#installing-sharp-optional
// Use sharp for faster builds
{
serviceEntryPoint: "@astrojs/image/sharp",
}
),
],
});