From 3ccc40637bc9ade8d7cbd68b5aac02bacff33774 Mon Sep 17 00:00:00 2001
From: Raniere Silva <raniere@rgaiacs.com>
Date: Wed, 23 May 2018 13:44:08 +0100
Subject: [PATCH] Remove root and layout from YAML for boilerplate

---
 bin/boilerplate/_config.yml        | 12 ++++++++++--
 bin/boilerplate/_extras/about.md   |  3 +--
 bin/boilerplate/_extras/discuss.md |  3 +--
 bin/boilerplate/_extras/figures.md |  3 +--
 bin/boilerplate/_extras/guide.md   |  3 +--
 bin/boilerplate/aio.md             |  4 +---
 bin/boilerplate/index.md           |  4 ++--
 bin/boilerplate/reference.md       |  3 +--
 bin/boilerplate/setup.md           |  4 +---
 9 files changed, 19 insertions(+), 20 deletions(-)

diff --git a/bin/boilerplate/_config.yml b/bin/boilerplate/_config.yml
index 566baf1..82eb08e 100644
--- a/bin/boilerplate/_config.yml
+++ b/bin/boilerplate/_config.yml
@@ -61,12 +61,20 @@ collections:
 # Set the default layout for things in the episodes collection.
 defaults:
   - values:
-      root: ..
+      root: .
+      layout: page
   - scope:
       path: ""
       type: episodes
     values:
+      root: ..
       layout: episode
+  - scope:
+      path: ""
+      type: extras
+    values:
+      root: ..
+      layout: page
 
 # Files and directories that are not to be copied.
 exclude:
@@ -74,4 +82,4 @@ exclude:
   - bin
 
 # Turn on built-in syntax highlighting.
-highlighter: rouge
\ No newline at end of file
+highlighter: rouge
diff --git a/bin/boilerplate/_extras/about.md b/bin/boilerplate/_extras/about.md
index b6ad26b..3008972 100644
--- a/bin/boilerplate/_extras/about.md
+++ b/bin/boilerplate/_extras/about.md
@@ -1,5 +1,4 @@
 ---
-layout: page
 title: About
 ---
-{% include carpentries.html %}
\ No newline at end of file
+{% include carpentries.html %}
diff --git a/bin/boilerplate/_extras/discuss.md b/bin/boilerplate/_extras/discuss.md
index 0a45a0f..524440a 100644
--- a/bin/boilerplate/_extras/discuss.md
+++ b/bin/boilerplate/_extras/discuss.md
@@ -1,5 +1,4 @@
 ---
-layout: page
 title: Discussion
 ---
-FIXME
\ No newline at end of file
+FIXME
diff --git a/bin/boilerplate/_extras/figures.md b/bin/boilerplate/_extras/figures.md
index fd540ed..b807e48 100644
--- a/bin/boilerplate/_extras/figures.md
+++ b/bin/boilerplate/_extras/figures.md
@@ -1,5 +1,4 @@
 ---
-layout: page
 title: Figures
 ---
 <script>
@@ -36,4 +35,4 @@ Create anchor for each one of the episodes.
 {% endcomment %}
 {% for episode in site.episodes %}
 <article id="{{ episode.url }}"></article>
-{% endfor %}
\ No newline at end of file
+{% endfor %}
diff --git a/bin/boilerplate/_extras/guide.md b/bin/boilerplate/_extras/guide.md
index 28caf72..da9be37 100644
--- a/bin/boilerplate/_extras/guide.md
+++ b/bin/boilerplate/_extras/guide.md
@@ -1,5 +1,4 @@
 ---
-layout: page
 title: "Instructor Notes"
 ---
-FIXME
\ No newline at end of file
+FIXME
diff --git a/bin/boilerplate/aio.md b/bin/boilerplate/aio.md
index 172b670..a418f3b 100644
--- a/bin/boilerplate/aio.md
+++ b/bin/boilerplate/aio.md
@@ -1,6 +1,4 @@
 ---
-layout: page
-root: .
 ---
 <script>
   window.onload = function() {
@@ -33,4 +31,4 @@ Create anchor for each one of the episodes.
 {% endcomment %}
 {% for episode in site.episodes %}
 <article id="{{ episode.url }}"></article>
-{% endfor %}
\ No newline at end of file
+{% endfor %}
diff --git a/bin/boilerplate/index.md b/bin/boilerplate/index.md
index 925b239..2809a1b 100644
--- a/bin/boilerplate/index.md
+++ b/bin/boilerplate/index.md
@@ -1,6 +1,6 @@
 ---
 layout: lesson
-root: .
+root: .  # Is the only page that don't follow the partner /:path/index.html
 permalink: index.html  # Is the only page that don't follow the partner /:path/index.html
 ---
 FIXME: home page introduction
@@ -8,4 +8,4 @@ FIXME: home page introduction
 > ## Prerequisites
 >
 > FIXME
-{: .prereq}
\ No newline at end of file
+{: .prereq}
diff --git a/bin/boilerplate/reference.md b/bin/boilerplate/reference.md
index 0436d06..8138fe9 100644
--- a/bin/boilerplate/reference.md
+++ b/bin/boilerplate/reference.md
@@ -1,8 +1,7 @@
 ---
 layout: reference
-root: .
 ---
 
 ## Glossary
 
-FIXME
\ No newline at end of file
+FIXME
diff --git a/bin/boilerplate/setup.md b/bin/boilerplate/setup.md
index ba8e8f5..b5792e6 100644
--- a/bin/boilerplate/setup.md
+++ b/bin/boilerplate/setup.md
@@ -1,6 +1,4 @@
 ---
-layout: page
 title: Setup
-root: .
 ---
-FIXME
\ No newline at end of file
+FIXME
-- 
GitLab