summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--themes/elenq/static/css/prism.css1
-rw-r--r--themes/elenq/templates/base.html25
2 files changed, 16 insertions, 10 deletions
diff --git a/themes/elenq/static/css/prism.css b/themes/elenq/static/css/prism.css
index 48351b6..4258e59 100644
--- a/themes/elenq/static/css/prism.css
+++ b/themes/elenq/static/css/prism.css
@@ -8,6 +8,7 @@ https://prismjs.com/download.html#themes=prism&languages=bash+clojure+latex+lisp
* Edited by Ekaitz Zarraga to make it fit in ElenQ Technology style.
*/
+pre.highlight,
code[class*="language-"],
pre[class*="language-"] {
background: none;
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>