aboutsummaryrefslogtreecommitdiff
path: root/theme/custom/partial/flex.html
blob: 747672b314050f0e2421bbd4fe92813454a2c754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>