Commit 908fff1f authored by Raniere Silva's avatar Raniere Silva Committed by GitHub
Browse files

Merge pull request #149 from rgaiacs/styles-print

Add all in one lesson build with Javascript
parents 6951d40b 3474a5ff
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@
  <div class="col-md-10">
    {% if include.episode_navbar_title %}
    <h3 class="maintitle"><a href="{{ page.root }}/">{{ site.title }}</a></h3>
    <h1 class="maintitle">{{ page.title }}</h1>
    {% endif %}
  </div>
  <div class="col-md-1">
+0 −33
Original line number Diff line number Diff line
{% 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 %}
<div class="row">
  <div class="col-md-1">
    <h3>
      {% if prev_episode %}
      <a href="{{ page.root }}{{ prev_episode.url }}"><span class="glyphicon glyphicon-menu-left"></span></a>
      {% else %}
      <a href="{{ page.root }}"><span class="glyphicon glyphicon-menu-up"></span></a>
      {% endif %}
    </h3>
  </div>
  <div class="col-md-10">
    <h3 class="maintitle"><a href="{{ page.root }}/">{{ site.title }}</a></h3>
    <h1 class="maintitle">{{ page.title }}</h1>
  </div>
  <div class="col-md-1">
    <h3>
      {% if next_episode %}
      <a href="{{ page.root }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right"></span></a>
      {% else %}
      <a href="{{ page.root }}"><span class="glyphicon glyphicon-menu-up"></span></a>
      {% endif %}
    </h3>
  </div>
</div>
+2 −0
Original line number Diff line number Diff line
@@ -45,6 +45,8 @@
            {% for episode in site.episodes %}
            <li><a href="{{ page.root }}{{ episode.url }}">{{ episode.title }}</a></li>
            {% endfor %}
	    <li role="separator" class="divider"></li>
            <li><a href="{{ page.root }}/aio/">All in one page (Beta)</a></li>
          </ul>
        </li>
	{% endif %}
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,9 @@
layout: base
---
{% include episode_navbar.html episode_navbar_title=true %}
<article>
{% include episode_title.html %}
{% include episode_break.html %}
{{content}}
</article>
{% include episode_navbar.html episode_navbar_title=false %}
+3 −0
Original line number Diff line number Diff line
@@ -2,7 +2,10 @@
layout: base
---
{% include episode_navbar.html episode_navbar_title=true %}
<article>
{% include episode_title.html %}
{% include episode_overview.html %}
{{content}}
{% include episode_keypoints.html %}
</article>
{% include episode_navbar.html episode_navbar_title=false %}
Loading