From 579f9ee1dd657de8bf6bed0cc4620012a5bc74fe Mon Sep 17 00:00:00 2001 From: Ohad Schneider Date: Mon, 4 Sep 2017 23:54:28 +0300 Subject: [PATCH] Fix precedence docs (#6346) Merge pull request 6346 --- docs/_docs/configuration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/_docs/configuration.md b/docs/_docs/configuration.md index 057e4ee2..6d74fdbb 100644 --- a/docs/_docs/configuration.md +++ b/docs/_docs/configuration.md @@ -518,7 +518,7 @@ defaults: - scope: path: "" - type: "posts" + type: "pages" values: layout: "my-site" - @@ -530,7 +530,7 @@ defaults: author: "Mr. Hyde" ``` -With these defaults, all posts would use the `my-site` layout. Any html files that exist in the `projects/` folder will use the `project` layout, if it exists. Those files will also have the `page.author` [liquid variable](../variables/) set to `Mr. Hyde`. +With these defaults, all pages would use the `my-site` layout. Any html files that exist in the `projects/` folder will use the `project` layout, if it exists. Those files will also have the `page.author` [liquid variable](../variables/) set to `Mr. Hyde`. ```yaml collections: @@ -553,7 +553,7 @@ In this example, the `layout` is set to `default` inside the Jekyll will apply all of the configuration settings you specify in the `defaults` section of your `_config.yml` file. However, you can choose to override settings from other scope/values pair by specifying a more specific path for the scope. -You can see that in the second to last example above. First, we set the default layout to `my-site`. Then, using a more specific path, we set the default layout for files in the `projects/` path to `project`. This can be done with any value that you would set in the page or post front matter. +You can see that in the second to last example above. First, we set the default page layout to `my-site`. Then, using a more specific path, we set the default layout for pages in the `projects/` path to `project`. This can be done with any value that you would set in the page or post front matter. Finally, if you set defaults in the site configuration by adding a `defaults` section to your `_config.yml` file, you can override those settings in a post or page file. All you need to do is specify the settings in the post or page front matter. For example: