From dd90968a3c9f87c2255992a83166b1b026d800fc Mon Sep 17 00:00:00 2001 From: Nathan Kennedy Date: Mon, 14 Mar 2022 11:11:05 +1300 Subject: [PATCH] Extra collection added to config in collection-override test --- .../collections-config-override.json | 65 ++++++++++++++++++- .../cloudcannon.config.yaml | 3 + 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/test/integration/collections-config-override.json b/test/integration/collections-config-override.json index 3223082..9b292a9 100644 --- a/test/integration/collections-config-override.json +++ b/test/integration/collections-config-override.json @@ -23,6 +23,10 @@ "staff_members": { "path": "data/staff_members", "output": false + }, + "blog": { + "path": "content/posts", + "output": true } }, "collections": { @@ -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" + } + ] } } \ No newline at end of file diff --git a/test/integration/collections-config-override/cloudcannon.config.yaml b/test/integration/collections-config-override/cloudcannon.config.yaml index 0b6b85f..373555a 100644 --- a/test/integration/collections-config-override/cloudcannon.config.yaml +++ b/test/integration/collections-config-override/cloudcannon.config.yaml @@ -3,3 +3,6 @@ collections_config: staff_members: path: data/staff_members output: false + blog: + path: content/posts + output: true \ No newline at end of file