jk.nipponalba.scot website https://jk.nipponalba.scot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

24 lines
1.1 KiB

5 years ago
5 years ago
5 years ago
5 years ago
  1. <footer id="footer">
  2. &copy; {{ now.Format "2006"}} | <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC-BY 4.0</a> | <a href="{{ .Permalink }}index.xml"><i class="fa fa-rss fa-fw" aria-hidden="true" title="Blog RSS feed"></i></a><br/>
  3. <img src="{{ .Site.Params.siteLogo | absURL }}" alt="nipponalba logo" id="logo"><br/>
  4. Made with ❤ and <a href="https://gohugo.io/">Hugo</a> by {{ .Site.Params.author }}
  5. </footer>
  6. <script>
  7. // This code is only used to remember theme selection between page loads
  8. const themeSwitch = document.querySelector('.theme-switch');
  9. themeSwitch.checked = localStorage.getItem('switchedTheme') === 'true';
  10. themeSwitch.addEventListener('change', function(e) {
  11. if (e.currentTarget.checked === true) {
  12. // Add item to localstorage
  13. localStorage.setItem('switchedTheme', 'true');
  14. } else {
  15. // Remove item if theme is switched back to normal
  16. localStorage.removeItem('switchedTheme');
  17. }
  18. });
  19. </script>
  20. </body>
  21. </html>