diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2020-07-30 17:00:13 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2020-07-30 17:00:13 +0200 |
commit | 4ded6599059c8f3999c6ad02c02828084a44e94b (patch) | |
tree | 98072fcdaac9f23467efa364a925c32eb5fff6a7 /themes/elenq/templates/base.html | |
parent | d42d2b147528bd1abfd46a06a4108642655bb77d (diff) |
Make theme work with relative paths
Diffstat (limited to 'themes/elenq/templates/base.html')
-rw-r--r-- | themes/elenq/templates/base.html | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/themes/elenq/templates/base.html b/themes/elenq/templates/base.html index c0f2811..e21c4e8 100644 --- a/themes/elenq/templates/base.html +++ b/themes/elenq/templates/base.html @@ -31,14 +31,14 @@ {% endif %} {% endblock head %} - <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/normalize.css"> - <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/elenq.css"> - <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/elenq-pelican.css"> - <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/fonts.css"> - <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/prism.css"> + <link rel="stylesheet" href="/{{ THEME_STATIC_DIR }}/css/normalize.css"> + <link rel="stylesheet" href="/{{ THEME_STATIC_DIR }}/css/elenq.css"> + <link rel="stylesheet" href="/{{ THEME_STATIC_DIR }}/css/elenq-pelican.css"> + <link rel="stylesheet" href="/{{ THEME_STATIC_DIR }}/css/fonts.css"> + <link rel="stylesheet" href="/{{ THEME_STATIC_DIR }}/css/prism.css"> - <script type="text/javascript" async src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/prism-hl.js"></script> - <script type="text/javascript" async src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/colorscheme-switcher.js"></script> + <script type="text/javascript" async src="/{{ THEME_STATIC_DIR }}/js/prism-hl.js"></script> + <script type="text/javascript" async src="/{{ THEME_STATIC_DIR }}/js/colorscheme-switcher.js"></script> </head> <body id="index" class="home"> @@ -51,15 +51,20 @@ {% endfor %} {% if DISPLAY_CATEGORIES_ON_MENU -%} {% for cat, null in categories %} - <a class="navbar-link link-left {% if cat == category %}active{% endif %}" href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a> + <a class="navbar-link link-left {% if cat == category %}active{% endif %}" href="/{{ cat.url }}">{{ cat }}</a> {% endfor %} {% endif %} </div> <hr class="short navbar-separator"/> <div class="navbar-right"> + + {% if FEED_ALL_ATOM %} + <a class="navbar-link link-right" href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}">RSS</a> + {% endif %} + {% if DISPLAY_PAGES_ON_MENU -%} {% for pg in pages %} - <a class="navbar-link link-right {% if pg == page %}active{% endif %}" href="{{ SITEURL }}/{{ pg.url }}">{{ pg.title }}</a> + <a class="navbar-link link-right {% if pg == page %}active{% endif %}" href="/{{ pg.url }}">{{ pg.title }}</a> {% endfor %} {% endif %} <button name="switch" id="dark-light-switch" class="navbar-link link-right" title="Toggle dark or light colorscheme"> @@ -71,7 +76,7 @@ </div> </header> <div class="content container"> - <h1 class="main-title"><a class="text-nodeco-black" href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %}:<br/><span class="subtitle">{{ SITESUBTITLE }}</span>{% endif %}</a></h1> + <h1 class="main-title"><a class="text-nodeco-black" href="/">{{ SITENAME }}{% if SITESUBTITLE %}:<br/><span class="subtitle">{{ SITESUBTITLE }}</span>{% endif %}</a></h1> {% block content %} {% endblock content %} </div> |