Skip to content

Commit

Permalink
Merge pull request datacarpentry#272 from rgaiacs/remove-root-and-layout
Browse files Browse the repository at this point in the history
Remove root and layout from YAML for boilerplate
  • Loading branch information
rgaiacs authored May 23, 2018
2 parents 434abbe + 3ccc406 commit 8e1b106
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 20 deletions.
12 changes: 10 additions & 2 deletions bin/boilerplate/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,25 @@ 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:
- Makefile
- bin

# Turn on built-in syntax highlighting.
highlighter: rouge
highlighter: rouge
3 changes: 1 addition & 2 deletions bin/boilerplate/_extras/about.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: page
title: About
---
{% include carpentries.html %}
{% include carpentries.html %}
3 changes: 1 addition & 2 deletions bin/boilerplate/_extras/discuss.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: page
title: Discussion
---
FIXME
FIXME
3 changes: 1 addition & 2 deletions bin/boilerplate/_extras/figures.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: page
title: Figures
---
<script>
Expand Down Expand Up @@ -36,4 +35,4 @@ Create anchor for each one of the episodes.
{% endcomment %}
{% for episode in site.episodes %}
<article id="{{ episode.url }}"></article>
{% endfor %}
{% endfor %}
3 changes: 1 addition & 2 deletions bin/boilerplate/_extras/guide.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: page
title: "Instructor Notes"
---
FIXME
FIXME
4 changes: 1 addition & 3 deletions bin/boilerplate/aio.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
layout: page
root: .
---
<script>
window.onload = function() {
Expand Down Expand Up @@ -33,4 +31,4 @@ Create anchor for each one of the episodes.
{% endcomment %}
{% for episode in site.episodes %}
<article id="{{ episode.url }}"></article>
{% endfor %}
{% endfor %}
4 changes: 2 additions & 2 deletions bin/boilerplate/index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
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

> ## Prerequisites
>
> FIXME
{: .prereq}
{: .prereq}
3 changes: 1 addition & 2 deletions bin/boilerplate/reference.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
layout: reference
root: .
---

## Glossary

FIXME
FIXME
4 changes: 1 addition & 3 deletions bin/boilerplate/setup.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
layout: page
title: Setup
root: .
---
FIXME
FIXME

0 comments on commit 8e1b106

Please sign in to comment.