-
Notifications
You must be signed in to change notification settings - Fork 1
/
indiekit.config.js
114 lines (113 loc) · 2.68 KB
/
indiekit.config.js
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import process from "node:process";
export default {
application: {
locale: "en-GB",
mongodbUrl: process.env.MONGO_URL,
timeZone: process.env.TZ,
url: "https://kit.paulrobertlloyd.com",
},
plugins: [
"@indiekit/endpoint-json-feed",
"@indiekit/post-type-jam",
"@indiekit/preset-eleventy",
"@indiekit/store-github",
"@indiekit/syndicator-internet-archive",
"@indiekit/syndicator-mastodon",
"@paulrobertlloyd/color-input",
"@paulrobertlloyd/tags-input",
],
publication: {
locale: "en-GB",
me: "https://paulrobertlloyd.com",
postTypes: {
article: {
post: {
path: "articles/{yyyy}-{MM}-{dd}-{slug}.markdown",
url: "{yyyy}/{DDD}/a{n}/{slug}/",
},
media: {
path: "media/{yyyy}/{DDD}/a{n}/{filename}",
url: "media/{yyyy}/{DDD}/a{n}/{filename}",
},
},
jam: {
post: {
path: "jams/{yyyy}-{MM}-{dd}-{n}.markdown",
url: "{yyyy}/{DDD}/j{n}/",
},
},
note: {
post: {
path: "notes/{yyyy}-{MM}-{dd}-{n}.markdown",
url: "{yyyy}/{DDD}/n{n}/",
},
},
photo: {
post: {
path: "photos/{yyyy}-{MM}-{dd}-{n}.markdown",
url: "{yyyy}/{DDD}/p{n}/",
},
media: {
path: "media/{yyyy}/{DDD}/p{n}/{filename}",
url: "media/{yyyy}/{DDD}/p{n}/{filename}",
},
},
bookmark: {
post: {
path: "bookmarks/{yyyy}-{MM}-{dd}-{slug}.markdown",
url: "{yyyy}/{DDD}/b{n}/{slug}/",
},
},
reply: {
post: {
path: "replies/{yyyy}-{MM}-{dd}-{n}.markdown",
url: "{yyyy}/{DDD}/r{n}/",
},
},
},
slugSeparator: "_",
},
"@indiekit/endpoint-media": {
imageProcessing: {
resize: {
width: 2400,
height: 2400,
},
},
},
"@indiekit/store-github": {
user: "paulrobertlloyd",
repo: "paulrobertlloyd-content",
},
"@indiekit/post-type-article": {
fields: {
name: { required: true },
content: { required: true },
summary: {},
category: {},
tags: {},
location: {},
color: {},
"post-status": {},
published: { required: true },
visibility: {},
},
},
"@indiekit/post-type-photo": {
fields: {
photo: { required: true },
content: {},
tags: {},
category: {},
"post-status": {},
"mp-photo-alt": { required: true },
published: { required: true },
visibility: {},
},
},
"@indiekit/syndicator-mastodon": {
checked: true,
url: "https://mastodon.social",
user: "paulrobertlloyd",
},
};