Commit 63dee896 authored by Anne Fouilloux's avatar Anne Fouilloux

figures.md; sync with the upstream

parent 59bd58a4
......@@ -3,11 +3,17 @@ title: Figures
---
{% include base_path.html %}
{% include manual_episode_order.html %}
<script>
window.onload = function() {
var lesson_episodes = [
{% for episode in site.episodes %}
{% 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 %}
"{{ episode.url }}"{% unless forloop.last %},{% endunless %}
{% endfor %}
];
......@@ -58,10 +64,15 @@ title: Figures
}
}
</script>
{% comment %}
Create anchor for each one of the episodes.
{% endcomment %}
{% for episode in site.episodes %}
{% comment %} Create anchor for each one of the episodes. {% 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 %}
<article id="{{ episode.url }}" class="figures"></article>
{% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment