X-Git-Url: https://git.arvados.org/rnaseq-cwl-training.git/blobdiff_plain/2e8a6b0c98b2e93521984c6ad1fe12d00dbc27b6..9788e51ba7558f423fffe09a9cdc446a48ce88ca:/_includes/episode_title.html diff --git a/_includes/episode_title.html b/_includes/episode_title.html index 767f38f..5b9c821 100644 --- a/_includes/episode_title.html +++ b/_includes/episode_title.html @@ -1,24 +1,41 @@ -{% include episode_find_prev_next.html %} +{% comment %} + Find previous and next episodes (if any). +{% endcomment %} +{% for episode in site.episodes %} + {% if episode.url == page.url %} + {% unless forloop.first %} + {% assign prev_episode = prev %} + {% endunless %} + {% unless forloop.last %} + {% assign next_episode = site.episodes[forloop.index] %} + {% endunless %} + {% endif %} + {% assign prev = episode %} +{% endfor %} + +{% comment %} + Display title and prev/next links. +{% endcomment %}

{% if prev_episode %} - + {% else %} - + {% endif %}

-

{{ site.title }}

+

{{ site.title }}

{{ page.title }}

{% if next_episode %} - + {% else %} - + {% endif %}