From 94c143cbc29413e750eb502ee8db011395643e04 Mon Sep 17 00:00:00 2001
From: Ekaitz Zárraga <ekaitz.zarraga@protonmail.com>
Date: Fri, 6 Apr 2018 12:23:02 +0200
Subject: Correct URLs

---
 publishconf.py                    |  2 +-
 themes/elenq/static/css/fonts.css | 20 ++++++++++----------
 themes/elenq/templates/base.html  | 10 +++++-----
 3 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/publishconf.py b/publishconf.py
index 82acae8..07588bb 100644
--- a/publishconf.py
+++ b/publishconf.py
@@ -10,7 +10,7 @@ import sys
 sys.path.append(os.curdir)
 from pelicanconf import *
 
-SITEURL = ''
+SITEURL = '/personal_blog'
 RELATIVE_URLS = False
 
 FEED_ALL_ATOM = 'feeds/all.atom.xml'
diff --git a/themes/elenq/static/css/fonts.css b/themes/elenq/static/css/fonts.css
index 90740da..de91f22 100644
--- a/themes/elenq/static/css/fonts.css
+++ b/themes/elenq/static/css/fonts.css
@@ -1,10 +1,10 @@
 /* Webfont: LatoLatin-Regular */@font-face {
     font-family: 'LatoLatinWeb';
-    src: url('/theme/fonts/LatoLatin-Regular.eot'); /* IE9 Compat Modes */
-    src: url('/theme/fonts/LatoLatin-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
-         url('/theme/fonts/LatoLatin-Regular.woff2') format('woff2'), /* Modern Browsers */
-         url('/theme/fonts/LatoLatin-Regular.woff') format('woff'), /* Modern Browsers */
-         url('/theme/fonts/LatoLatin-Regular.ttf') format('truetype');
+    src: url('../fonts/LatoLatin-Regular.eot'); /* IE9 Compat Modes */
+    src: url('../fonts/LatoLatin-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
+         url('../fonts/LatoLatin-Regular.woff2') format('woff2'), /* Modern Browsers */
+         url('../fonts/LatoLatin-Regular.woff') format('woff'), /* Modern Browsers */
+         url('../fonts/LatoLatin-Regular.ttf') format('truetype');
     font-style: normal;
     font-weight: normal;
     text-rendering: optimizeLegibility;
@@ -12,11 +12,11 @@
 
 /* Webfont: LatoLatin-Light */@font-face {
     font-family: 'LatoLatinLightWeb';
-    src: url('/theme/fonts/LatoLatin-Light.eot'); /* IE9 Compat Modes */
-    src: url('/theme/fonts/LatoLatin-Light.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
-         url('/theme/fonts/LatoLatin-Light.woff2') format('woff2'), /* Modern Browsers */
-         url('/theme/fonts/LatoLatin-Light.woff') format('woff'), /* Modern Browsers */
-         url('/theme/fonts/LatoLatin-Light.ttf') format('truetype');
+    src: url('../fonts/LatoLatin-Light.eot'); /* IE9 Compat Modes */
+    src: url('../fonts/LatoLatin-Light.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
+         url('../fonts/LatoLatin-Light.woff2') format('woff2'), /* Modern Browsers */
+         url('../fonts/LatoLatin-Light.woff') format('woff'), /* Modern Browsers */
+         url('../fonts/LatoLatin-Light.ttf') format('truetype');
     font-style: normal;
     font-weight: normal;
     text-rendering: optimizeLegibility;
diff --git a/themes/elenq/templates/base.html b/themes/elenq/templates/base.html
index d591ee5..1b6c420 100644
--- a/themes/elenq/templates/base.html
+++ b/themes/elenq/templates/base.html
@@ -30,10 +30,10 @@
     {% endif %}
     {% endblock head %}
 
-    <link rel="stylesheet" href="/theme/css/normalize.css">
-    <link rel="stylesheet" href="/theme/css/skeleton.css">
-    <link rel="stylesheet" href="/theme/css/style.css">
-    <link rel="stylesheet" href="/theme/css/fonts.css">
+    <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/normalize.css">
+    <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/skeleton.css">
+    <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/style.css">
+    <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/fonts.css">
   </head>
 
   <body id="index" class="home">
@@ -73,7 +73,7 @@
 
         <div class="container text-center">
           <a href="https://elenq.tech">
-            <img class="footer-logo"src="/theme/img/ElenQTechLogoSimple.png" alt="ElenQ Technology">
+            <img class="footer-logo"src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/img/ElenQTechLogoSimple.png" alt="ElenQ Technology">
           </a>
         </div>
       </footer><!-- /#contentinfo -->
-- 
cgit v1.2.3