Skip to content

Commit

Permalink
Merge pull request #21 from BenjaminNavarro/master
Browse files Browse the repository at this point in the history
Take set_order into account
  • Loading branch information
Robbie-Cook committed Oct 21, 2020
2 parents 0169119 + 8ba44f7 commit 1ea6a05
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ To create a new series:

To add a tutorial/post to a series:
* Add a `set` field to the tutorial front matter which points to the file name of the desired set without the `.md` extention. e.g. If I have a set at `_sets/getting-started.md` I would use this in my tutorial front matter: `set: getting-started`.
* Add a `set_order` field to the tutorial front matter and specify a number. This is the tutorials order in the set.
* Add a `order_number` field to the tutorial front matter and specify a number. This is the tutorials order in the set.

### Navigation

Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1>{{ page.title }}</h1>
{% if page.set %}
{% assign set_file_name = "_sets/" | append: page.set | append: ".md" %}
{% assign set = site.sets | where: "path", set_file_name | first %}
{% assign series_posts = site.posts | where: "set", page.set %}
{% assign series_posts = site.posts | where: "set", page.set | sort: "order_number" %}
<div class="tutorial-series">
<h3>{{ set.title }} - Series</h3>
<p>{{ set.description }}</p>
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-01-15-client-editable-jekyll-sites.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resources:
link: https://cloudcannon.com
type: Video
set: getting-started
set_order: 1
order_number: 1
---
Many people don’t use Jekyll for client projects as non-developers would traditionally have to learn HTML, Markdown and Liquid to update content. In this tutorial, we give non-developers an easy way to update Jekyll sites with [CloudCannon](https://cloudcannon.com).

Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-01-15-file-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resources:
link: https://github.com/CloudCannon/bakery-store/tree/structure
type: Video
set: getting-started
set_order: 2
order_number: 2
---
Many people don’t use Jekyll for client projects as non-developers would traditionally have to learn HTML, Markdown and Liquid to update content. In this tutorial, we give non-developers an easy way to update Jekyll sites with [CloudCannon](https://cloudcannon.com).

Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-01-15-front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resources:
link: https://github.com/CloudCannon/bakery-store/tree/frontmatter
type: Video
set: getting-started
set_order: 3
order_number: 3
---
Many people don’t use Jekyll for client projects as non-developers would traditionally have to learn HTML, Markdown and Liquid to update content. In this tutorial, we give non-developers an easy way to update Jekyll sites with [CloudCannon](https://cloudcannon.com).

Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-01-15-introduction-to-collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resources:
link: https://github.com/CloudCannon/bakery-store/tree/collections
type: Video
set: getting-started
set_order: 4
order_number: 4
---

Many people don’t use Jekyll for client projects as non-developers would traditionally have to learn HTML, Markdown and Liquid to update content. In this tutorial, we give non-developers an easy way to update Jekyll sites with [CloudCannon](https://cloudcannon.com).
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-01-15-layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resources:
link: https://github.com/CloudCannon/bakery-store/tree/layouts
type: Video
set: getting-started
set_order: 5
order_number: 5
---

Many people don’t use Jekyll for client projects as non-developers would traditionally have to learn HTML, Markdown and Liquid to update content. In this tutorial, we give non-developers an easy way to update Jekyll sites with [CloudCannon](https://cloudcannon.com).
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-01-15-why-use-a-static-site-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: Video
categories:
- getting-started
set: getting-started
set_order: 6
order_number: 6
---
Many people don’t use Jekyll for client projects as non-developers would traditionally have to learn HTML, Markdown and Liquid to update content. In this tutorial, we give non-developers an easy way to update Jekyll sites with [CloudCannon](https://cloudcannon.com).

Expand Down

0 comments on commit 1ea6a05

Please sign in to comment.