-
Notifications
You must be signed in to change notification settings - Fork 11
/
astro.config.mjs
42 lines (41 loc) · 1.33 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
import { defineConfig } from "astro/config";
import NetlifyCMS from "astro-netlify-cms";
// https://astro.build/config
export default defineConfig({
integrations: [
NetlifyCMS({
config: {
backend: {
name: "git-gateway",
branch: "master",
},
logo_url: "https://codestitch.app/frontend/images/logo.png",
media_folder: "public/assets/images/blog",
public_folder: "/assets/images/blog",
collections: [
{
name: "blog",
label: "Blog",
folder: "src/content/blog",
create: true,
fields: [
{ label: "Title", name: "title", widget: "string" },
{ label: "Description", name: "description", widget: "string" },
{ label: "Author", name: "author", widget: "string" },
{ label: "Date", name: "date", widget: "datetime" },
{
label: "Tags",
name: "tags",
widget: "list",
default: ["post"],
},
{ label: "Featured Image", name: "image", widget: "image" },
{ label: "Image Caption", name: "imageAlt", widget: "string" },
{ label: "Body", name: "body", widget: "markdown" },
],
},
],
},
}),
],
});