summaryrefslogtreecommitdiff
path: root/themes/elenq/templates/base.html
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2020-01-13 19:41:52 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2020-01-13 19:41:52 +0100
commit3f4aa41a685ccab17e1d76cdde20a4a6ab95a095 (patch)
treefdc6aec5254a777ffc1c65de07ab0cfe3e41efc0 /themes/elenq/templates/base.html
parent19ac3bb71b9d77719428554e2fc3c0ebb2ee5de6 (diff)
Colortheme switcher
Diffstat (limited to 'themes/elenq/templates/base.html')
-rw-r--r--themes/elenq/templates/base.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/elenq/templates/base.html b/themes/elenq/templates/base.html
index 79973e1..c0f2811 100644
--- a/themes/elenq/templates/base.html
+++ b/themes/elenq/templates/base.html
@@ -38,6 +38,7 @@
<link rel="stylesheet" href="{{ SITEURL }}/{{ 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>
</head>
<body id="index" class="home">
@@ -61,6 +62,10 @@
<a class="navbar-link link-right {% if pg == page %}active{% endif %}" href="{{ SITEURL }}/{{ 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">
+ {% include "_sun.svg" %}
+ {% include "_moon.svg" %}
+ </button>
</div>
</nav>
</div>