diff --git a/_includes/episode_navbar.html b/_includes/episode_navbar.html index 1f6e033dc7825788fc159e3c5f085da20f61bef3..b9f85f6bda40c87832bdf1fdf2b137df35cd4d68 100644 --- a/_includes/episode_navbar.html +++ b/_includes/episode_navbar.html @@ -14,7 +14,6 @@
{% if include.episode_navbar_title %}

{{ site.title }}

-

{{ page.title }}

{% endif %}
diff --git a/_includes/episode_title.html b/_includes/episode_title.html index 5b9c821cae653b287ad995116b5af7dccf9a0572..d0abc654593423464e2082976e9b2c8879aa2b95 100644 --- a/_includes/episode_title.html +++ b/_includes/episode_title.html @@ -1,42 +1,9 @@ -{% 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 }}

{{ page.title }}

-

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

diff --git a/_includes/navbar.html b/_includes/navbar.html index 00fd328babc24494b2c44a9c06317c0bc2e65537..7782c9dd5b7bdbdfb9d1f61026e562f9ea0aaaeb 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -45,6 +45,8 @@ {% for episode in site.episodes %}
  • {{ episode.title }}
  • {% endfor %} + +
  • All in one page (Beta)
  • {% endif %} diff --git a/_layouts/break.html b/_layouts/break.html index 6e2a6a092f60e11ddda3ddd0cbb891a46db48b15..ac582324bf3132a257655cbb43c55464386be73e 100644 --- a/_layouts/break.html +++ b/_layouts/break.html @@ -2,6 +2,9 @@ layout: base --- {% include episode_navbar.html episode_navbar_title=true %} +
    +{% include episode_title.html %} {% include episode_break.html %} {{content}} +
    {% include episode_navbar.html episode_navbar_title=false %} diff --git a/_layouts/episode.html b/_layouts/episode.html index d774a6814733acd55e13a7d9c2ac132cd2a4eba8..0b276e773a269213fb0eb745fad9c413f7fc55d6 100644 --- a/_layouts/episode.html +++ b/_layouts/episode.html @@ -2,7 +2,10 @@ layout: base --- {% include episode_navbar.html episode_navbar_title=true %} +
    +{% include episode_title.html %} {% include episode_overview.html %} {{content}} {% include episode_keypoints.html %} +
    {% include episode_navbar.html episode_navbar_title=false %} diff --git a/bin/lesson_initialize.py b/bin/lesson_initialize.py index 540bb08c83724f964570874b1b6e796640ac99d9..513597a40cd144186811f40528a344dd1237903b 100755 --- a/bin/lesson_initialize.py +++ b/bin/lesson_initialize.py @@ -278,6 +278,45 @@ permalink: /setup/ FIXME ''' +ROOT_SETUP_MD = '''\ +--- +layout: page +permalink: /aio/ +--- + +{% comment %} +Create anchor for each one of the episodes. +{% endcomment %} +{% for episode in site.episodes %} +
    +{% endfor %} +''' + EPISODES_INTRODUCTION_MD = '''\ --- title: "Introduction" @@ -340,6 +379,7 @@ BOILERPLATE = ( ('index.md', ROOT_INDEX_MD), ('reference.md', ROOT_REFERENCE_MD), ('setup.md', ROOT_SETUP_MD), + ('aio.md', ROOT_AIO_MD), ('_episodes/01-introduction.md', EPISODES_INTRODUCTION_MD), ('_extras/about.md', EXTRAS_ABOUT_MD), ('_extras/discuss.md', EXTRAS_DISCUSS_MD),