diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 9 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 51fd26c..458589f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -27,5 +27,14 @@ </body> +<script> + + function toggleTheme() { + document.body.classList.toggle('light'); + document.body.classList.toggle('dark'); + } + +</script> + </html>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 92da9a7..14e5c07 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -15,6 +15,6 @@ </p> {{ end }} {{ end }} - </div> + </div>
\ No newline at end of file |