aboutsummaryrefslogtreecommitdiff
path: root/theme
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-01-20 16:13:46 +0100
committerSébastien Dailly <sebastien@chimrod.com>2021-01-20 16:13:46 +0100
commita67b1cbc8213cae1bf8ff61581ab4c60147ff7f3 (patch)
tree66055ff97b712350964e086f51e7076c14a00271 /theme
parent06065bf74b78f2d32ca9c96756d173d378de6b6d (diff)
Updated theme
Diffstat (limited to 'theme')
-rwxr-xr-xtheme/custom/partial/flex.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/theme/custom/partial/flex.html b/theme/custom/partial/flex.html
new file mode 100755
index 0000000..747672b
--- /dev/null
+++ b/theme/custom/partial/flex.html
@@ -0,0 +1,21 @@
+<p>
+{{
+ _('Built with %(pelican_url)s',
+ pelican_url='<a href="http://getpelican.com" target="_blank">Pelican</a>')
+}}
+{% if THEME_COLOR_ENABLE_USER_OVERRIDE %}
+ <span class="footer-separator">|</span>
+ {{
+ _('Switch to the %(dark_url)s | %(light_url)s | %(browser_url)s theme',
+ dark_url='<a href="javascript:void(0)" onclick="theme.switch(`dark`)">dark</a>',
+ light_url='<a href="javascript:void(0)" onclick="theme.switch(`light`)">light</a>',
+ browser_url='<a href="javascript:void(0)" onclick="theme.switch(`browser`)">browser</a>'|safe)
+ }}
+ <script id="dark-theme-script"
+ src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/dark-theme/dark-theme.min.js"
+ data-enable-auto-detect-theme="{{ THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE|default('false') }}"
+ data-default-theme="{{ THEME_COLOR|default('light') }}"
+ type="text/javascript">
+ </script>
+{% endif %}
+</p>