From 324c74061acf0e090b08aa9fae59a9f27d30717c Mon Sep 17 00:00:00 2001 From: Caleb Date: Tue, 7 Aug 2018 19:28:27 -0600 Subject: [PATCH] chore(lint): fix failing CI builds (#1589) --- website/content/docs/collection-types.md | 50 ++++++++++++------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/website/content/docs/collection-types.md b/website/content/docs/collection-types.md index efac07b0..412b7319 100644 --- a/website/content/docs/collection-types.md +++ b/website/content/docs/collection-types.md @@ -14,21 +14,21 @@ Folder collections represent one or more files with the same format, fields, and Unlike file collections, folder collections have the option to allow editors to create new items in the collection. This is set by the boolean `create` field. -**Note:** Folder collections must have at least one field with the name `title` for creating new entry slugs. That field should use the default `string` widget. The `label` for the field can be any string value. See the [Collections reference doc](https://www.netlifycms.org/docs/configuration-options/#collections) for details on how collections and fields are configured. +**Note:** Folder collections must have at least one field with the name `title` for creating new entry slugs. That field should use the default `string` widget. The `label` for the field can be any string value. See the [Collections reference doc](https://www.netlifycms.org/docs/configuration-options/#collections) for details on how collections and fields are configured. Example: ```yaml collections: - - label: "Blog" - name: "blog" - folder: "_posts/blog" + - label: 'Blog' + name: 'blog' + folder: '_posts/blog' create: true fields: - - {label: "Title", name: "title", widget: "string"} - - {label: "Publish Date", name: "date", widget: "datetime"} - - {label: "Featured Image", name: "thumbnail", widget: "image"} - - {label: "Body", name: "body", widget: "markdown"} + - { label: 'Title', name: 'title', widget: 'string' } + - { label: 'Publish Date', name: 'date', widget: 'datetime' } + - { label: 'Featured Image', name: 'thumbnail', widget: 'image' } + - { label: 'Body', name: 'body', widget: 'markdown' } ``` ### Filtered folder collections @@ -74,32 +74,32 @@ Example: ```yaml collections: - - label: "Pages" - name: "pages" + - label: 'Pages' + name: 'pages' files: - - label: "About Page" - name: "about" - file: "site/content/about.yml" + - label: 'About Page' + name: 'about' + file: 'site/content/about.yml' fields: - - {label: Title, name: title, widget: string} - - {label: Intro, name: intro, widget: markdown} + - { label: Title, name: title, widget: string } + - { label: Intro, name: intro, widget: markdown } - label: Team name: team widget: list fields: - - {label: Name, name: name, widget: string} - - {label: Position, name: position, widget: string} - - {label: Photo, name: photo, widget: image} - - label: "Locations Page" - name: "locations" - file: "site/content/locations.yml" + - { label: Name, name: name, widget: string } + - { label: Position, name: position, widget: string } + - { label: Photo, name: photo, widget: image } + - label: 'Locations Page' + name: 'locations' + file: 'site/content/locations.yml' fields: - - {label: Title, name: title, widget: string} - - {label: Intro, name: intro, widget: markdown} + - { label: Title, name: title, widget: string } + - { label: Intro, name: intro, widget: markdown } - label: Locations name: locations widget: list fields: - - {label: Name, name: name, widget: string} - - {label: Address, name: address, widget: string} + - { label: Name, name: name, widget: string } + - { label: Address, name: address, widget: string } ```