forked from LibraryCarpentry/lc-open-refine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all in one lesson build with Javascript
- Loading branch information
Showing
6 changed files
with
48 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %} | ||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters