Skip to content

Commit

Permalink
Extra collection added to config in collection-override test
Browse files Browse the repository at this point in the history
  • Loading branch information
NJKode committed Mar 13, 2022
1 parent a36541c commit dd90968
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 1 deletion.
65 changes: 64 additions & 1 deletion test/integration/collections-config-override.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"staff_members": {
"path": "data/staff_members",
"output": false
},
"blog": {
"path": "content/posts",
"output": true
}
},
"collections": {
Expand Down Expand Up @@ -63,6 +67,65 @@
"blurb": "Betty is a bookworm who will typically have four books on the go.",
"output": false
}
]
],
"blog": [
{
"url": "/blog/",
"path": "content/posts/_index.md",
"collection": "blog",
"title": "Blog",
"description": "Keep up with the latest news.",
"menu": {
"main": {
"weight": 2
},
"footer": {
"weight": 2
}
},
"_enabled_editors": [
"visual",
"content",
"source"
],
"layout": "posts/list"
},
{
"url": "/posts/2016/08/06/post3/",
"path": "content/posts/post3.md",
"collection": "blog",
"date": "2016-08-06T00:00:00.000Z",
"title": "Post3",
"categories": [
"sales"
],
"author_staff_member": "anna",
"layout": "posts/single"
},
{
"url": "/posts/2016/08/12/post2/",
"path": "content/posts/post2.md",
"collection": "blog",
"date": "2016-08-12T00:00:00.000Z",
"title": "Post2",
"categories": [
"marketing"
],
"author_staff_member": "betty",
"layout": "posts/single"
},
{
"url": "/posts/2016/07/20/post1/",
"path": "content/posts/post1.md",
"collection": "blog",
"date": "2016-07-20T00:00:00.000Z",
"title": "Post1",
"categories": [
"sales"
],
"author_staff_member": "anna",
"layout": "posts/single"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ collections_config:
staff_members:
path: data/staff_members
output: false
blog:
path: content/posts
output: true

0 comments on commit dd90968

Please sign in to comment.