2014-05-19 05:33:47 +04:00
|
|
|
Fixtures for the Ghost blogging platform, intended to be generated with http://www.json-generator.com/
|
2014-05-24 22:14:33 +04:00
|
|
|
The generator's index() starts a 0, remove first 'post' to match expected data format.
|
2014-05-19 05:33:47 +04:00
|
|
|
|
|
|
|
{
|
|
|
|
posts: [
|
2014-05-24 22:14:33 +04:00
|
|
|
'{{repeat(31)}}',
|
2014-05-19 05:33:47 +04:00
|
|
|
{
|
|
|
|
id: '{{index()}}',
|
|
|
|
uuid: '{{guid()}}',
|
2014-05-24 22:14:33 +04:00
|
|
|
status: '{{random("published", "draft")}}',
|
2014-05-19 05:33:47 +04:00
|
|
|
title: '{{lorem( integer(1, 10), "words")}}',
|
|
|
|
slug: function(tag, index){
|
|
|
|
return this.title.replace(/ /g, '-');
|
|
|
|
},
|
|
|
|
markdown: '{{lorem( integer(1, 10), "paragraphs")}}',
|
|
|
|
html: function(tag, index){
|
|
|
|
return "<p>" + this.markdown + "</p>";
|
|
|
|
},
|
|
|
|
image: null,
|
|
|
|
featured: '{{integer(0, 1)}}',
|
2014-05-24 22:14:33 +04:00
|
|
|
page: '{{integer(0, 1)}}',
|
2014-05-19 05:33:47 +04:00
|
|
|
language: "en_US",
|
|
|
|
meta_title: null,
|
|
|
|
meta_description: null,
|
|
|
|
author: {
|
2014-05-24 22:14:33 +04:00
|
|
|
id: '{{integer(1, 10)}}',
|
2014-05-19 05:33:47 +04:00
|
|
|
uuid: '{{guid()}}',
|
|
|
|
name: '{{firstName()}} {{surname()}}',
|
|
|
|
slug: function(tag, index){
|
|
|
|
return this.name.replace(/ /g, '-').toLocaleLowerCase();
|
|
|
|
},
|
|
|
|
email: '{{email()}}',
|
|
|
|
image: undefined,
|
|
|
|
cover: undefined,
|
|
|
|
bio: '{{lorem(5, 50, "words")}}',
|
|
|
|
website: "",
|
|
|
|
location: '{{lorem( integer(1, 3), "words")}}',
|
|
|
|
accessibility: undefined,
|
|
|
|
status: "active",
|
|
|
|
language: "en_US",
|
|
|
|
meta_title: undefined,
|
|
|
|
meta_description: undefined,
|
|
|
|
created_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
|
|
|
|
updated_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}'
|
|
|
|
},
|
|
|
|
created_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
|
|
|
|
created_by: {
|
2014-05-24 22:14:33 +04:00
|
|
|
id: '{{integer(1, 10)}}',
|
2014-05-19 05:33:47 +04:00
|
|
|
uuid: '{{guid()}}',
|
|
|
|
name: '{{firstName()}} {{surname()}}',
|
|
|
|
slug: function(tag, index){
|
|
|
|
return this.name.replace(/ /g, '-').toLocaleLowerCase();
|
|
|
|
},
|
|
|
|
email: '{{email()}}',
|
|
|
|
image: undefined,
|
|
|
|
cover: undefined,
|
|
|
|
bio: '{{lorem(5, 50, "words")}}',
|
|
|
|
website: "",
|
|
|
|
location: '{{lorem( integer(1, 3), "words")}}',
|
|
|
|
accessibility: undefined,
|
|
|
|
status: "active",
|
|
|
|
language: "en_US",
|
|
|
|
meta_title: undefined,
|
|
|
|
meta_description: undefined,
|
|
|
|
created_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
|
|
|
|
updated_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}'
|
|
|
|
},
|
|
|
|
updated_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
|
|
|
|
updated_by: {
|
2014-05-24 22:14:33 +04:00
|
|
|
id: '{{integer(1, 10)}}',
|
2014-05-19 05:33:47 +04:00
|
|
|
uuid: '{{guid()}}',
|
|
|
|
name: '{{firstName()}} {{surname()}}',
|
|
|
|
slug: function(tag, index){
|
|
|
|
return this.name.replace(/ /g, '-').toLocaleLowerCase();
|
|
|
|
},
|
|
|
|
email: '{{email()}}',
|
|
|
|
image: undefined,
|
|
|
|
cover: undefined,
|
|
|
|
bio: '{{lorem(5, 50, "words")}}',
|
|
|
|
website: "",
|
|
|
|
location: '{{lorem( integer(1, 3), "words")}}',
|
|
|
|
accessibility: undefined,
|
|
|
|
status: "active",
|
|
|
|
language: "en_US",
|
|
|
|
meta_title: undefined,
|
|
|
|
meta_description: undefined,
|
|
|
|
created_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
|
|
|
|
updated_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}'
|
|
|
|
},
|
|
|
|
published_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
|
|
|
|
published_by: {
|
2014-05-24 22:14:33 +04:00
|
|
|
id: '{{integer(1, 10)}}',
|
2014-05-19 05:33:47 +04:00
|
|
|
uuid: '{{guid()}}',
|
|
|
|
name: '{{firstName()}} {{surname()}}',
|
|
|
|
slug: function(tag, index){
|
|
|
|
return this.name.replace(/ /g, '-').toLocaleLowerCase();
|
|
|
|
},
|
|
|
|
email: '{{email()}}',
|
|
|
|
image: undefined,
|
|
|
|
cover: undefined,
|
|
|
|
bio: '{{lorem(5, 50, "words")}}',
|
|
|
|
website: "",
|
|
|
|
location: '{{lorem( integer(1, 3), "words")}}',
|
|
|
|
accessibility: undefined,
|
|
|
|
status: "active",
|
|
|
|
language: "en_US",
|
|
|
|
meta_title: undefined,
|
|
|
|
meta_description: undefined,
|
|
|
|
created_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
|
|
|
|
updated_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}'
|
|
|
|
},
|
|
|
|
tags: [
|
|
|
|
'{{repeat(0, 10)}}',
|
|
|
|
{
|
2014-05-24 22:14:33 +04:00
|
|
|
id: '{{integer(1, 100)}}',
|
2014-05-19 05:33:47 +04:00
|
|
|
uuid: '{{guid()}}',
|
|
|
|
name: '{{lorem( integer(1, 3), "words")}}',
|
|
|
|
slug: function(tag, index){
|
|
|
|
return this.name.replace(/ /g, '-').toLocaleLowerCase();
|
|
|
|
},
|
|
|
|
description: null,
|
|
|
|
parent_id: null,
|
|
|
|
meta_title: null,
|
|
|
|
meta_description: null,
|
|
|
|
created_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
|
|
|
|
created_by: '{{integer(0, 10)}}',
|
|
|
|
updated_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
|
|
|
|
updated_by: '{{integer(0, 10)}}'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}]
|
2014-05-24 22:14:33 +04:00
|
|
|
}
|