-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeystatic.config.tsx
96 lines (95 loc) · 3.58 KB
/
keystatic.config.tsx
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
import { config } from '@keystatic/core'
import { KEYSTATIC_STORAGE_KIND } from 'astro:env/client'
import { bicyclenetworkpagesKeystatic } from 'keystatic/bicyclenetworkPagesKeystatic'
import { HomepageIntroKeystatic, HomepageMainKeystatic } from 'keystatic/homepageKeystatic'
import { keystaticImprintPageConfig } from 'keystatic/imprintKeystatic'
import { keystaticMeasuresConfig } from 'keystatic/measuresKeystatic'
import { keystaticMeasuretownsConfig } from 'keystatic/measuretownsKeystatic'
import { keystaticMeasuretypesConfig } from 'keystatic/measuretypesKeystatic'
import { keystaticPartnerCommunesPageConfig } from 'keystatic/partnercommunespageKeystatic'
import { keystaticPersonsConfig } from 'keystatic/personsKeystatic'
import { keystaticPressPageConfig } from 'keystatic/pressKeystatic'
import {
keystaticProjectPartnerPageIntroConfig,
keystaticProjectPartnerPageMainConfig,
} from 'keystatic/projectpartnerpageKeystatic'
import { keystaticResearchPageConfig } from 'keystatic/researchKeystatic'
import {
keystaticSubprojectAndMeasureTopicsConfig,
keystaticSubprojectCommunesConfig,
keystaticSubprojectPartnersConfig,
keystaticSubprojectsConfig,
} from 'keystatic/subprojectsKeystatic'
export default config({
storage: {
// https://keystatic.com/docs/github-mode#setting-up-git-hub-mode
kind: KEYSTATIC_STORAGE_KIND,
repo: {
owner: 'FixMyBerlin',
name: 'nudafa',
},
// https://keystatic.com/docs/github-mode
},
ui: {
brand: {
name: 'Nudafa',
mark: () => <img src="/favicon-32x32.png" height={27} />,
},
navigation: {
Home: ['homepageintro', 'homepagemain'],
'Das Reallabor': [
'projectpartnerpageintro',
'projectpartnerpagemain',
'partnercommunespage',
'persons',
'researchpage',
'presspage',
],
Teilprojekte: ['subprojects', 'subprojectstopics', 'communes', 'partners'],
Radnetz: ['bicyclenetworkages'],
Maßnahmen: ['measures', 'measuretypes', 'subprojectstopics', 'measuretowns'],
'Weitere Seiten': ['imprintpage'],
},
},
singletons: {
homepageintro: HomepageIntroKeystatic,
homepagemain: HomepageMainKeystatic,
presspage: keystaticPressPageConfig,
researchpage: keystaticResearchPageConfig,
projectpartnerpageintro: keystaticProjectPartnerPageIntroConfig,
projectpartnerpagemain: keystaticProjectPartnerPageMainConfig,
imprintpage: keystaticImprintPageConfig,
partnercommunespage: keystaticPartnerCommunesPageConfig,
},
collections: {
subprojects: keystaticSubprojectsConfig,
subprojectstopics: keystaticSubprojectAndMeasureTopicsConfig,
communes: keystaticSubprojectCommunesConfig, // Verbundpartner
partners: keystaticSubprojectPartnersConfig, // Projektpartner
bicyclenetworkages: bicyclenetworkpagesKeystatic,
measures: keystaticMeasuresConfig,
measuretowns: keystaticMeasuretownsConfig,
measuretypes: keystaticMeasuretypesConfig,
persons: keystaticPersonsConfig,
// posts: collection({
// label: "Posts",
// slugField: "title",
// path: "src/content/posts/*",
// format: { contentField: "content" },
// schema: {
// title: fields.slug({ name: { label: "Title" } }),
// content: fields.document({
// label: "Content",
// formatting: true,
// dividers: true,
// links: true,
// images: {
// directory: "src/assets/images/posts",
// publicPath: "../../assets/images/posts/",
// },
// }),
// },
// }),
// news: keystaticNewsConfig,
},
})