-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpodcast.js
88 lines (85 loc) · 1.99 KB
/
podcast.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
import { FaPodcast } from 'react-icons/fa'
import languages from './languages';
export default {
name: 'podcast',
title: 'Podcast',
description: 'Create and configure a podcast',
icon: FaPodcast,
type: 'document',
fields: [
{
name: 'title',
type: 'string',
required: true,
description:
'Remember that if your title is too long, it may be truncated in various podcatchers-'
},
{
name: 'subtitle',
type: 'string',
description: 'That catchy tagline.'
},
{
name: 'slug',
title: 'Podcast slug',
type: 'slug',
description: 'For when you need to refer to your podcast in a url.',
options: {
source: 'title',
slugify: input =>
input
.toLowerCase()
.replace(/\s+/g, '-')
.slice(0, 200)
}
},
{
name: 'description',
type: 'text',
required: true,
description:
'What is this podcast about and why should people subscribe to it?'
},
{
name: 'coverArt',
title: 'Cover art',
type: 'image',
required: true,
description:
'The image should be either jpg or png. Preferably 3000 x 3000, minimum 1400 x 1400 pixels.'
},
{
name: 'copyright',
type: 'string',
description: 'Who owns the rights to this podcast?'
},
{
name: 'language',
type: 'string',
description: 'What language is this podcast in?',
options: {
list: languages
}
},
{
name: 'explicit',
type: 'boolean',
description:
'Do you need to warn parents about the content in this podcast? (You can set this for individual episodes to)'
},
{
name: 'itunes',
title: 'iTunes settings',
type: 'itunes',
description: 'iTunes has extra stuff',
}
],
preview: {
select: {
title: 'title',
subtitle: 'subtitle',
description: 'description',
media: 'coverArt'
}
}
};