Skip to content

Commit

Permalink
Switch to relative: in episode_title, use page.root + rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
twitwi committed Sep 5, 2016
1 parent 791dcc3 commit 62b5dbc
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions _includes/episode_title.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,22 @@
<div class="col-md-1">
<h3>
{% if prev_episode %}
<a href="{{ site.github.url }}{{ prev_episode.url }}"><span class="glyphicon glyphicon-menu-left"></span></a>
{% elsif site.github.url %}
<a href="{{ site.github.url }}"><span class="glyphicon glyphicon-menu-up"></span></a>
<a href="{{ page.root }}{{ prev_episode.url }}"><span class="glyphicon glyphicon-menu-left"></span></a>
{% else %}
<a href="/"><span class="glyphicon glyphicon-menu-up"></span></a>
<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="{{ site.github.url }}/">{{ site.title }}</a></h3>
<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="{{ site.github.url }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right"></span></a>
{% elsif site.github.url %}
<a href="{{ site.github.url }}"><span class="glyphicon glyphicon-menu-up"></span></a>
<a href="{{ page.root }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right"></span></a>
{% else %}
<a href="/"><span class="glyphicon glyphicon-menu-up"></span></a>
<a href="{{ page.root }}"><span class="glyphicon glyphicon-menu-up"></span></a>
{% endif %}
</h3>
</div>
Expand Down

0 comments on commit 62b5dbc

Please sign in to comment.