Skip to content

Instantly share code, notes, and snippets.

@aileen
Last active January 11, 2019 04:01
Show Gist options
  • Save aileen/172ed94bcd18a328034e0259dbf3e702 to your computer and use it in GitHub Desktop.
Save aileen/172ed94bcd18a328034e0259dbf3e702 to your computer and use it in GitHub Desktop.
Gatsby Ghost Data Stub
{
"db": [
{
"meta": {
"exported_on": 1544714630332,
"version": "2.8.0"
},
"data": {
"posts": [
{
"id": "5bbafb3cb7ec4135e42fce56",
"uuid": "472cd89d-953c-42ad-ae18-974b35444d03",
"title": "Data schema",
"slug": "data-schema",
"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": 1,
"page": 0,
"status": "published",
"locale": "en",
"visibility": "public",
"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",
"author_id": "1",
"created_at": "2000-01-01 00:00:01",
"created_by": "1",
"updated_at": "2018-10-08 06:38:11",
"updated_by": "1",
"published_at": "2000-01-01 00:00:01",
"published_by": "1",
"custom_excerpt": "This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function",
"codeinjection_head": ".some-class {\n}",
"codeinjection_foot": ".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"
},
{
"id": "5bbafb3cb7ec4135e42fce57",
"uuid": "472cd89d-953c-42ad-ae18-974b35444d04",
"title": "Data schema",
"slug": "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": 1,
"page": 1,
"status": "published",
"locale": "en",
"visibility": "public",
"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",
"author_id": "1",
"created_at": "2000-01-01 00:00:01",
"created_by": "1",
"updated_at": "2018-10-08 06:38:11",
"updated_by": "1",
"published_at": "2000-01-01 00:00:01",
"published_by": "1",
"custom_excerpt": "This is a data schema stub for Gatsby.js and is not used. It must exist for builds to function",
"codeinjection_head": ".some-class {\n}",
"codeinjection_foot": ".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"
}
],
"users": [
{
"id": "179e06da7ae846929bb30f19f3e82ecb",
"name": "Data Schema Author",
"slug": "data-schema-author",
"ghost_auth_access_token": null,
"ghost_auth_id": null,
"password": "$2a$10$c6zP7E6FFaOQbWFN3x/kCOEzznBAlZ7b0kyOLYjq9xIgJCaMJ2rCC",
"email": "data-schema@example.com",
"profile_image": "https://casper.ghost.org/v2.0.0/images/ghost.png",
"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": "@tryghost",
"accessibility": null,
"status": "active",
"locale": "en",
"visibility": "public",
"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",
"tour": null,
"last_seen": null,
"created_at": "2000-01-01 00:00:01",
"created_by": "1",
"updated_at": "2000-01-01 00:00:01",
"updated_by": "1"
}
],
"roles_users": [
{
"id": "5bbb04cbbc2aa53eb177f40f",
"role_id": "5bbb04cabc2aa53eb177f3cd",
"user_id": "179e06da7ae846929bb30f19f3e82ecb"
}
],
"posts_authors": [
{
"id": "5bbafb4eb7ec4135e42fce5a",
"post_id": "5bbafb3cb7ec4135e42fce56",
"author_id": "179e06da7ae846929bb30f19f3e82ecb",
"sort_order": 0
},
{
"id": "5bbafb3cb7ed4135e42fce57",
"post_id": "5bbafb3cb7ec4135e42fce56",
"author_id": "1",
"sort_order": 1
},
{
"id": "5bbafb4eb7ec4135e42fce5b",
"post_id": "5bbafb3cb7ec4135e42fce57",
"author_id": "179e06da7ae846929bb30f19f3e82ecb",
"sort_order": 0
},
{
"id": "5bbafb3cb7ec4135e42fce58",
"post_id": "5bbafb3cb7ec4135e42fce57",
"author_id": "1",
"sort_order": 1
}
],
"tags": [
{
"id": "a6fd74f5667245d9b678429bc35febbf",
"name": "Data schema primary",
"slug": "data-schema-primary",
"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",
"parent_id": null,
"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",
"created_at": "2018-10-08 06:36:13",
"created_by": "1",
"updated_at": "2018-10-08 06:36:13",
"updated_by": "1"
},
{
"id": "6e14f6d50a6348bda2d8a79b94e88a6c",
"name": "Data schema",
"slug": "data-schema",
"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",
"parent_id": null,
"visibility": "public",
"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-10-08 06:37:38",
"created_by": "1",
"updated_at": "2018-10-08 06:37:38",
"updated_by": "1"
}
],
"posts_tags": [
{
"id": "5bbafb4eb7ec4135e42fce58",
"post_id": "5bbafb3cb7ec4135e42fce56",
"tag_id": "6e14f6d50a6348bda2d8a79b94e88a6c",
"sort_order": 0
},
{
"id": "5bbafb4eb7ec4135e42fce59",
"post_id": "5bbafb3cb7ec4135e42fce56",
"tag_id": "a6fd74f5667245d9b678429bc35febbf",
"sort_order": 1
},
{
"id": "5bbafb4eb7ec4135e42fce60",
"post_id": "5bbafb3cb7ec4135e42fce57",
"tag_id": "6e14f6d50a6348bda2d8a79b94e88a6c",
"sort_order": 0
},
{
"id": "5bbafb4eb7ec4135e42fce61",
"post_id": "5bbafb3cb7ec4135e42fce57",
"tag_id": "a6fd74f5667245d9b678429bc35febbf",
"sort_order": 1
}
]
}
}
]
}
@andirkh
Copy link

andirkh commented Jan 10, 2019

where should I put this code in gatsby-starter-blog? Index.js? thank you :)

@godofredoninja
Copy link

@andirkh You have to import to ghost 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment