Skip to content

Commit 62b5dbc

Browse files
committed
Switch to relative: in episode_title, use page.root + rewrite
1 parent 791dcc3 commit 62b5dbc

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

_includes/episode_title.html

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,22 @@
2020
<div class="col-md-1">
2121
<h3>
2222
{% if prev_episode %}
23-
<a href="{{ site.github.url }}{{ prev_episode.url }}"><span class="glyphicon glyphicon-menu-left"></span></a>
24-
{% elsif site.github.url %}
25-
<a href="{{ site.github.url }}"><span class="glyphicon glyphicon-menu-up"></span></a>
23+
<a href="{{ page.root }}{{ prev_episode.url }}"><span class="glyphicon glyphicon-menu-left"></span></a>
2624
{% else %}
27-
<a href="/"><span class="glyphicon glyphicon-menu-up"></span></a>
25+
<a href="{{ page.root }}"><span class="glyphicon glyphicon-menu-up"></span></a>
2826
{% endif %}
2927
</h3>
3028
</div>
3129
<div class="col-md-10">
32-
<h3 class="maintitle"><a href="{{ site.github.url }}/">{{ site.title }}</a></h3>
30+
<h3 class="maintitle"><a href="{{ page.root }}/">{{ site.title }}</a></h3>
3331
<h1 class="maintitle">{{ page.title }}</h1>
3432
</div>
3533
<div class="col-md-1">
3634
<h3>
3735
{% if next_episode %}
38-
<a href="{{ site.github.url }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right"></span></a>
39-
{% elsif site.github.url %}
40-
<a href="{{ site.github.url }}"><span class="glyphicon glyphicon-menu-up"></span></a>
36+
<a href="{{ page.root }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right"></span></a>
4137
{% else %}
42-
<a href="/"><span class="glyphicon glyphicon-menu-up"></span></a>
38+
<a href="{{ page.root }}"><span class="glyphicon glyphicon-menu-up"></span></a>
4339
{% endif %}
4440
</h3>
4541
</div>

0 commit comments

Comments
 (0)