jekyll-theme-doodle 5.1.5 → 5.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bac0d7854086dcb0a939a8e61e8a1e249f95bee8dd3d8c2a9fd4d5a9c2aad7f3
4
- data.tar.gz: 7a126d3b2442fbe651852851c16ee113a0954d621631f3432e633fd3dd2dbdb2
3
+ metadata.gz: f5aed0b3e91836678ba06dfaa52335f888bac660dcc7b0202d16148e7c40a7f8
4
+ data.tar.gz: 23baa3bf9fa923f591344c5cec57cba4642e8fec924f46bb0a921da16ef1a993
5
5
  SHA512:
6
- metadata.gz: 99da5747741ad7f9b04a857b8c8e0b62bdbcbcf66ca97ee843c631ab4027496793ef1f3750ae43492c871f4100fe2817ded3e0e6507eea188565271e311bbfc5
7
- data.tar.gz: 5b1d30e5c83d099e652e411cb15ea8442b3e5f26121bbc6e57f34dc2e68ffe4707a2e5883dccc92c69776a9ead207419c468e6769823612dfc68f3f40810cf5a
6
+ metadata.gz: 3db04474c1bed02c293d1f1d05ce09ce672a5c096d3fb3d22a7a0184cc90772a205490214a7974d950e3e3fa45fe16580ce7bad8def5a5bdb624aa54b4524de7
7
+ data.tar.gz: 80a2ec83675fbf5e1790044338b66ce72a1345084e349a57463110d064e346d6ac3269f0ee5a848ccc1a8cd6aaa1e7ea18bf3961a1a8303cd604271dd495199d
data/README.md CHANGED
@@ -112,7 +112,6 @@ To add a tagline/description below the site title, add a tagline property to \_c
112
112
  tagline: "Your awesome tagline"
113
113
  ```
114
114
 
115
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
116
115
 
117
116
  ### Google analytics
118
117
 
@@ -137,6 +136,8 @@ icon: "/assets/icons/about.svg"
137
136
 
138
137
  - [ ] Add support for comments
139
138
  - [ ] Search functionality
139
+ - [ ] automatic table of contents generation (button in mobile view/ sidebar in desktop view)
140
+
140
141
 
141
142
  ## Contributing
142
143
 
data/_includes/head.html CHANGED
@@ -33,9 +33,9 @@
33
33
  "light-cyan": "#81d5cd",
34
34
  };
35
35
  const root = document.querySelector("html");
36
- const theme = window.localStorage.getItem("theme");
36
+ let theme = window.localStorage.getItem("theme");
37
37
  if (theme === null || !(theme in colors)) {
38
- const theme = "dark-pink";
38
+ theme = "dark-pink";
39
39
  window.localStorage.setItem("theme", theme);
40
40
  }
41
41
  root.className = theme;
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html lang="{{ page.lang | default: site.lang | default: "en" }}">
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}" class="dark-pink">
3
3
 
4
4
  {%- include head.html -%}
5
5
 
@@ -2,6 +2,7 @@
2
2
  const themeSelector = document.getElementById("themeSelector");
3
3
  const themeOptions = document.getElementById("themeOptions");
4
4
  const root = document.querySelector("html");
5
+ const theme = root.className;
5
6
 
6
7
  function clickHandler(color) {
7
8
  return (event) => {
@@ -9,7 +10,6 @@
9
10
  const newTheme = `${mode}-${color.split("-")[1]}`;
10
11
  window.localStorage.setItem("theme", newTheme);
11
12
  root.className = newTheme;
12
- const selectedColor = event.target.getAttribute("data-color");
13
13
  };
14
14
  }
15
15
 
@@ -28,7 +28,6 @@
28
28
  });
29
29
 
30
30
  const darkModeToggle = document.getElementById("darkModeToggle");
31
-
32
31
  darkModeToggle.checked = theme.startsWith("dark") ? true : false;
33
32
  darkModeToggle.addEventListener("change", () => {
34
33
  let activeMode = root.className;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-doodle
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.5
4
+ version: 5.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gul Noor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-06 00:00:00.000000000 Z
11
+ date: 2024-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll