X-Git-Url: https://git.arvados.org/rnaseq-cwl-training.git/blobdiff_plain/b276295b7df5998d108895d3a37b04459cdd84cd..e176d3bffaf78fe2882929f7685ccf90da9f4a26:/_includes/aio-script.md
diff --git a/_includes/aio-script.md b/_includes/aio-script.md
index 926e0a6..a81fbcd 100644
--- a/_includes/aio-script.md
+++ b/_includes/aio-script.md
@@ -1,13 +1,20 @@
{% comment %}
As a maintainer, you don't need to edit this file.
-If you notice that something doesn't work, please
+If you notice that something doesn't work, please
open an issue: https://github.com/carpentries/styles/issues/new
{% endcomment %}
+{% include manual_episode_order.html %}
+
-{% comment %}
-Create an anchor for every episode.
-{% endcomment %}
-{% for episode in site.episodes %}
-
+
+{% comment %} Create an anchor for every episode. {% endcomment %}
+
+{% for lesson_episode in lesson_episodes %}
+ {% if site.episode_order %}
+ {% assign episode = site.episodes | where: "slug", lesson_episode | first %}
+ {% else %}
+ {% assign episode = lesson_episode %}
+ {% endif %}
+
{% endfor %}