Sha256: c2426fd8c62351658e124062f1f2062ea1b38524aa9330337e55e4ad1e036c18
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
<!DOCTYPE html> <html lang="{{ page.lang | default: site.lang | default: "en" }}"> {%- include head.html -%} <body class="light-theme || dark-theme"> <article class="container"> {%- include header.html -%} <main class="page-content" aria-label="Content"> {% include nav.html %} <div class="wrapper"> {{ content }} </div> </main> {%- include footer.html -%} </article> </body> <script> const btn = document.querySelector('.theme-switch input[type="checkbox"]'); // Listen for a click on the button btn.addEventListener('click', function() { // Then toggle (add/remove) the .dark-theme class to the body document.body.classList.toggle('light-theme'); }); </script> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-theme-aurora-0.1.0 | _layouts/default.html |