This repository has been archived by the owner on Jan 30, 2021. It is now read-only.
forked from TryGhost/gatsby-source-ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ghost-schema.js
133 lines (130 loc) · 7.61 KB
/
ghost-schema.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
const tag = {
id: 'a6fd74f5667245d9b678429bc35febbf',
name: 'Data schema primary',
slug: 'data-schema',
url: 'https://demo.ghost.io/tag/data-schema-tag/',
description: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
feature_image: 'https://images.unsplash.com/photo-1532630571098-79a3d222b00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ&s=a88235003c40468403f936719134519d',
visibility: 'public',
meta_title: 'Data schema primary',
meta_description: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
postCount: 1
};
const author = {
id: '179e06da7ae846929bb30f19f3e82ecb',
name: 'Data Schema Author',
slug: 'data-schema-author',
url: 'https://demo.ghost.io/author/data-schema-author/',
profile_image: 'https://pm1.narvii.com/6446/272b71c319670f00db0e08079d3a2d785224e6c7_128.jpg',
cover_image: 'https://images.unsplash.com/photo-1532630571098-79a3d222b00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ&s=a88235003c40468403f936719134519d',
bio: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
website: 'https://ghost.org',
location: 'The Internet',
facebook: 'ghost',
twitter: '@ghost',
meta_title: 'Data Schema Author',
meta_description: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
postCount: 1
};
const post = {
id: '5bbafb3cb7ec4135e42fce56',
uuid: '472cd89d-953c-42ad-ae18-974b35444d03',
title: 'Data schema',
slug: 'data-schema',
url: 'https://demo.ghost.io/data-schema/',
canonical_url: 'https://demo.ghost.io/data-schema-page/',
mobiledoc: '{"version":"0.3.1","atoms":[],"cards":[],"markups":[],"sections":[[1,"p",[[0,[],0,"This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function"]]]]}',
html: '<p>This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function</p>',
comment_id: '5bb75b5a37361dae192eff1b',
plaintext: 'This is a data schema stub for Gatsby.js and is not used. It must exist for\nbuilds to function',
feature_image: 'https://images.unsplash.com/photo-1532630571098-79a3d222b00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ&s=a88235003c40468403f936719134519d',
featured: true,
page: false,
meta_title: 'Data schema',
meta_description: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
created_at: '2018-12-04T13:59:08.000+00:00',
updated_at: '2018-12-04T13:59:08.000+00:00',
published_at: '2018-12-04T13:59:14.000+00:00',
custom_excerpt: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
excerpt: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
codeinjection_head: '<style>.some-class {\n}<style><script>function(){console.log("hello");}</script>',
codeinjection_foot: '<style>.some-class {\n}<style><script>function(){console.log("hello");}</script>',
codeinjection_styles: '.some-class {\n}',
og_image: 'https://images.unsplash.com/photo-1532630571098-79a3d222b00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ&s=a88235003c40468403f936719134519d',
og_title: 'Data schema',
og_description: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
twitter_image: 'https://images.unsplash.com/photo-1532630571098-79a3d222b00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ&s=a88235003c40468403f936719134519d',
twitter_title: 'Data schema',
twitter_description: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
primary_author: author,
primary_tag: tag,
authors: [author],
tags: [tag],
visibility: 'public',
reading_time: 1
};
const page = {
id: '5bbafb3cb7ec4135e42fce57',
uuid: '472cd89d-953c-42ad-ae18-974b35444d04',
title: 'Data schema',
slug: 'data-schema-page',
url: 'https://demo.ghost.io/data-schema-page/',
canonical_url: 'https://demo.ghost.io/data-schema-page/',
mobiledoc: '{"version":"0.3.1","atoms":[],"cards":[],"markups":[],"sections":[[1,"p",[[0,[],0,"This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function"]]]]}',
html: '<p>This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function</p>',
comment_id: '5bb75b5a37361dae192eff1b',
plaintext: 'This is a data schema stub for Gatsby.js and is not used. It must exist for\nbuilds to function',
feature_image: 'https://images.unsplash.com/photo-1532630571098-79a3d222b00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ&s=a88235003c40468403f936719134519d',
featured: false,
page: true,
meta_title: 'Data schema',
meta_description: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
created_at: '2018-12-04T13:59:08.000+00:00',
updated_at: '2018-12-04T13:59:08.000+00:00',
published_at: '2018-12-04T13:59:14.000+00:00',
custom_excerpt: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
excerpt: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
codeinjection_head: '<style>.some-class {\n}<style><script>function(){console.log("hello");}</script>',
codeinjection_foot: '<style>.some-class {\n}<style><script>function(){console.log("hello");}</script>',
codeinjection_styles: '.some-class {\n}',
og_image: 'https://images.unsplash.com/photo-1532630571098-79a3d222b00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ&s=a88235003c40468403f936719134519d',
og_title: 'Data schema',
og_description: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
twitter_image: 'https://images.unsplash.com/photo-1532630571098-79a3d222b00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ&s=a88235003c40468403f936719134519d',
twitter_title: 'Data schema',
twitter_description: 'This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function',
custom_template: 'post.hbs',
primary_author: author,
primary_tag: tag,
authors: [author],
tags: [tag],
visibility: 'public',
reading_time: 1
};
const settings = {
title: 'Ghost',
description: 'The professional publishing platform',
logo: 'https://static.ghost.org/v1.0.0/images/ghost-logo.svg',
icon: 'https://static.ghost.org/favicon.ico',
cover_image: 'https://static.ghost.org/v1.0.0/images/blog-cover.jpg',
facebook: 'ghost',
twitter: '@ghost',
lang: 'en',
timezone: 'Etc/UTC',
codeinjection_head: '<script>>some script</script><style></style>',
codeinjection_foot: '<style>.some-class {\n}</style><script></script>',
codeinjection_styles: '.some-class {\n}',
navigation: [
{label: 'Home', url: '/'},
{label: 'Tag', url: '/tag/getting-started/'},
{label: 'Author', url: '/author/ghost/'},
{label: 'Help', url: 'https://help.ghost.org'}
]
};
module.exports = {
post,
page,
tag,
author,
settings
};