refactor: update toggle theme function for better structure and a11y

Move theme switch js codes in Layout.astro file to external js file (toggle-theme.js). Update
.prettierignore to exclude the new toggle-theme.js file.  Update base.css for new data-theme
attribute.
This commit is contained in:
satnaing
2022-11-26 23:43:27 +06:30
parent 5a67afc6b2
commit 0eeed8e870
4 changed files with 61 additions and 44 deletions
+1
View File
@@ -3,6 +3,7 @@
# Except these files & folders
!/src
!/public
!/.github
!tsconfig.json
!astro.config.mjs