From 62b5dbc25625c264c151d7c152c89eadeef6956c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Emonet?= <remi.emonet@reverse--com.heeere>
Date: Mon, 5 Sep 2016 19:24:49 +0200
Subject: [PATCH] Switch to relative: in episode_title, use page.root + rewrite

---
 _includes/episode_title.html | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/_includes/episode_title.html b/_includes/episode_title.html
index 7ea24a2..5b9c821 100644
--- a/_includes/episode_title.html
+++ b/_includes/episode_title.html
@@ -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>
-- 
GitLab