diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2020-01-13 19:41:52 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2020-01-13 19:41:52 +0100 |
commit | 3f4aa41a685ccab17e1d76cdde20a4a6ab95a095 (patch) | |
tree | fdc6aec5254a777ffc1c65de07ab0cfe3e41efc0 /themes/elenq/templates/base.html | |
parent | 19ac3bb71b9d77719428554e2fc3c0ebb2ee5de6 (diff) |
Colortheme switcher
Diffstat (limited to 'themes/elenq/templates/base.html')
-rw-r--r-- | themes/elenq/templates/base.html | 5 |
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> |