From 069805c6f799a9187f91177f8d34e12e14cb3b18 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Fri, 22 Aug 2014 15:02:43 -0700 Subject: [PATCH] Add note about GitHub Pages using Jekyll 2.2.0 and thus singular types for FMD. Closes #2796. --- site/_docs/configuration.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/site/_docs/configuration.md b/site/_docs/configuration.md index f9b29cdd..20581b9b 100644 --- a/site/_docs/configuration.md +++ b/site/_docs/configuration.md @@ -304,7 +304,7 @@ defaults: - scope: path: "" # an empty string here means all files in the project - type: "posts" + type: "posts" # previously `post` in Jekyll 2.2. values: layout: "default" {% endhighlight %} @@ -312,6 +312,16 @@ defaults: Now, this will only set the layout for files where the type is `posts`. The different types that are available to you are `pages`, `posts`, `drafts` or any collection in your site. While `type` is optional, you must specify a value for `path` when creating a `scope/values` pair. +
+
GitHub Pages uses singular types
+

+ When specifying the type (see above), be sure to use the + singular form if you're deploying to GitHub Pages. Pages is + still running Jekyll 2.2.0, which uses the singular forms, so use either + page or post for type. +

+
+ As mentioned earlier, you can set multiple scope/values pairs for `defaults`. {% highlight yaml %}