jekyll-theme-hydejack 9.1.9 → 9.2.0

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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +53 -90
  3. data/_config.yml +1 -4
  4. data/_includes/body/footer.html +1 -1
  5. data/_includes/body/index.html +1 -1
  6. data/_includes/body/scripts.html +2 -2
  7. data/_includes/head/meta-static.html +1 -1
  8. data/_includes/head/meta.html +8 -0
  9. data/_includes/head/styles-inline.html +1 -1
  10. data/_includes/head/styles-no-inline.html +1 -1
  11. data/_includes/header.txt +1 -1
  12. data/_includes/pro/dark-mode-fix.html +7 -0
  13. data/_includes/scripts/dark-mode-fix.js +10 -0
  14. data/_includes/scripts/dark-mode-fix.min.js +1 -0
  15. data/_includes/styles/inline.scss +6 -0
  16. data/_includes/styles/page-style.scss +9 -2
  17. data/_includes/styles/style.scss +10 -0
  18. data/_includes/styles/variables.scss +1 -1
  19. data/_includes/templates/index.html +3 -0
  20. data/_includes/templates/pro/dark-mode.html +6 -0
  21. data/_layouts/compress.html +1 -1
  22. data/_sass/_mixins.scss +1 -1
  23. data/_sass/html.scss +0 -2
  24. data/_sass/pooleparty/__link__/_code.scss +1 -0
  25. data/_sass/pooleparty/_code.pre.scss +1 -0
  26. data/_sass/pro/_dark-mode-dynamic-syntax.scss +9 -0
  27. data/_sass/pro/_dark-mode-dynamic.scss +20 -0
  28. data/_sass/pro/_dark-mode.scss +32 -0
  29. data/_sass/pro/_syntax-dark.scss +139 -0
  30. data/assets/icomoon/fonts/icomoon.eot +0 -0
  31. data/assets/icomoon/fonts/icomoon.svg +15 -1
  32. data/assets/icomoon/fonts/icomoon.ttf +0 -0
  33. data/assets/icomoon/fonts/icomoon.woff +0 -0
  34. data/assets/icomoon/selection.json +1 -1
  35. data/assets/icomoon/style.css +48 -6
  36. data/assets/js/{LEGACY-clap-button-hydejack-9.1.9.js → LEGACY-clap-button-hydejack-9.2.0.js} +2 -2
  37. data/assets/js/{LEGACY-drawer-hydejack-9.1.9.js → LEGACY-drawer-hydejack-9.2.0.js} +2 -2
  38. data/assets/js/{LEGACY-fetch-hydejack-9.1.9.js → LEGACY-fetch-hydejack-9.2.0.js} +2 -2
  39. data/assets/js/LEGACY-hydejack-9.2.0.js +13 -0
  40. data/assets/js/{LEGACY-navbar-hydejack-9.1.9.js → LEGACY-navbar-hydejack-9.2.0.js} +2 -2
  41. data/assets/js/{LEGACY-push-state-hydejack-9.1.9.js → LEGACY-push-state-hydejack-9.2.0.js} +2 -2
  42. data/assets/js/{resize-observer-hydejack-9.1.9.js → LEGACY-resize-observer-hydejack-9.2.0.js} +2 -2
  43. data/assets/js/{LEGACY-shadydom-hydejack-9.1.9.js → LEGACY-shadydom-hydejack-9.2.0.js} +2 -2
  44. data/assets/js/{LEGACY-vendors~clap-button-hydejack-9.1.9.js → LEGACY-vendors~clap-button-hydejack-9.2.0.js} +2 -2
  45. data/assets/js/{LEGACY-vendors~drawer-hydejack-9.1.9.js → LEGACY-vendors~drawer-hydejack-9.2.0.js} +4 -4
  46. data/assets/js/{LEGACY-vendors~drawer~push-state-hydejack-9.1.9.js → LEGACY-vendors~drawer~push-state-hydejack-9.2.0.js} +13 -13
  47. data/assets/js/{LEGACY-vendors~fetch-hydejack-9.1.9.js → LEGACY-vendors~fetch-hydejack-9.2.0.js} +2 -2
  48. data/assets/js/{LEGACY-vendors~intersection-observer-hydejack-9.1.9.js → LEGACY-vendors~intersection-observer-hydejack-9.2.0.js} +2 -2
  49. data/assets/js/{LEGACY-vendors~push-state-hydejack-9.1.9.js → LEGACY-vendors~push-state-hydejack-9.2.0.js} +3 -3
  50. data/assets/js/{LEGACY-vendors~shadydom-hydejack-9.1.9.js → LEGACY-vendors~shadydom-hydejack-9.2.0.js} +2 -2
  51. data/assets/js/{LEGACY-vendors~webanimations-hydejack-9.1.9.js → LEGACY-vendors~webanimations-hydejack-9.2.0.js} +2 -2
  52. data/assets/js/{LEGACY-vendors~webcomponents-hydejack-9.1.9.js → LEGACY-vendors~webcomponents-hydejack-9.2.0.js} +4 -4
  53. data/assets/js/{LEGACY-webcomponents-hydejack-9.1.9.js → LEGACY-webcomponents-hydejack-9.2.0.js} +2 -2
  54. data/assets/js/clap-button-hydejack-9.2.0.js +14 -0
  55. data/assets/js/drawer-hydejack-9.2.0.js +14 -0
  56. data/assets/js/{shadydom-hydejack-9.1.9.js → fetch-hydejack-9.2.0.js} +2 -2
  57. data/assets/js/hydejack-9.2.0.js +13 -0
  58. data/assets/js/navbar-hydejack-9.2.0.js +14 -0
  59. data/assets/js/push-state-hydejack-9.2.0.js +14 -0
  60. data/assets/js/{LEGACY-resize-observer-hydejack-9.1.9.js → resize-observer-hydejack-9.2.0.js} +2 -2
  61. data/assets/js/{fetch-hydejack-9.1.9.js → shadydom-hydejack-9.2.0.js} +2 -2
  62. data/assets/js/{vendors~clap-button-hydejack-9.1.9.js → vendors~clap-button-hydejack-9.2.0.js} +2 -2
  63. data/assets/js/{vendors~drawer-hydejack-9.1.9.js → vendors~drawer-hydejack-9.2.0.js} +4 -4
  64. data/assets/js/{vendors~drawer~push-state-hydejack-9.1.9.js → vendors~drawer~push-state-hydejack-9.2.0.js} +11 -11
  65. data/assets/js/{vendors~fetch-hydejack-9.1.9.js → vendors~fetch-hydejack-9.2.0.js} +2 -2
  66. data/assets/js/{vendors~intersection-observer-hydejack-9.1.9.js → vendors~intersection-observer-hydejack-9.2.0.js} +2 -2
  67. data/assets/js/{vendors~push-state-hydejack-9.1.9.js → vendors~push-state-hydejack-9.2.0.js} +3 -3
  68. data/assets/js/{vendors~shadydom-hydejack-9.1.9.js → vendors~shadydom-hydejack-9.2.0.js} +2 -2
  69. data/assets/js/{vendors~webanimations-hydejack-9.1.9.js → vendors~webanimations-hydejack-9.2.0.js} +2 -2
  70. data/assets/js/{webcomponents-hydejack-9.1.9.js → webcomponents-hydejack-9.2.0.js} +2 -2
  71. data/assets/version.json +2 -2
  72. metadata +46 -39
  73. data/_includes/scripts.html +0 -33
  74. data/assets/js/LEGACY-hydejack-9.1.9.js +0 -13
  75. data/assets/js/clap-button-hydejack-9.1.9.js +0 -14
  76. data/assets/js/drawer-hydejack-9.1.9.js +0 -14
  77. data/assets/js/hydejack-9.1.9.js +0 -13
  78. data/assets/js/navbar-hydejack-9.1.9.js +0 -14
  79. data/assets/js/push-state-hydejack-9.1.9.js +0 -14
  80. /data/assets/css/{hydejack-9.1.9.css → hydejack-9.2.0.css} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9e8449344882f96131b7523ccc23e397196a7291c0dbc7c8db10474b9f275db
4
- data.tar.gz: bdfddbcc4936cc248bda7a37e90cf934fddf289e7dee0b01b081aa6922d20c9c
3
+ metadata.gz: eb537c9e2b8f45d777859699f3631077b18058ce01b6e322f727136d1018b70a
4
+ data.tar.gz: 4ac43942527877672ee46d7ac4cd9faac8892465ccce5275f3808431983ffccd
5
5
  SHA512:
6
- metadata.gz: 0eccffa021ab8e2cc013c6dfbb67b8cb1f0abed28e102f55712f61375c9b8b40264ee2d80d2824adbfc1b3ad40cc3317c065a3e50cbb708e8f3ef577b7fda9b7
7
- data.tar.gz: 28e0bb24e467387091520f9722dfb1e88e21ec17a9ae18b69d1922f928fb6b48b2cbbb4a34dadc0871487d2de602bdc364be295664ca1b60960655a6e48eac47
6
+ metadata.gz: e75ca0d0a9447cbd9a0b06e16beea208f8e6e6b6783e87270a8d129ec539420e07ef7fc0305bc607c0e32f4c4cff698fc7572e517ee0d8315bb691a25f89dc5b
7
+ data.tar.gz: 10a775240fd963a11fa18f01b14f3bbaa254584f060f184570a5809022244be809e6a3d3ecabceb349f87bef4183b6a128b6c33c2939ec42c5a471938db6bb8c
data/README.md CHANGED
@@ -7,10 +7,9 @@ A boutique Jekyll theme for hackers, nerds, and academics.
7
7
 
8
8
 
9
9
 
10
-
11
10
  [![Screenshot](https://hydejack.com/assets/img/blog/hydejack-9.jpg)][welcome]
12
11
 
13
- Hydejack's cover page on a variety of screens.
12
+ <p align="center">Hydejack's cover page on a variety of screen sizes.
14
13
 
15
14
 
16
15
 
@@ -26,40 +25,10 @@ It includes a blog that is suitable for both prose and technical documentation,
26
25
 
27
26
  **Hydejack** is 100% built on Open Source software, and is Open Source itself, save for parts of the PRO version. The PRO version is a one-time payment that gives you the right to use it forever.
28
27
 
29
- Hydejack is all static sites. _HTML_. All you need is a web server --- any web server --- to have a professional web presence that lasts a lifetime.
30
-
31
- ## Download
32
-
33
- There are two versions of **Hydejack**: The *Free Version* includes basic blogging functionality and most of Hydejack's [Features], such as dynamic page loading and advanced animations.
34
-
35
- The *PRO Version* includes additional features for professionals, such as a [portfolio], [resume], [Dark Mode][dark], [Forms], [Built-In Search][search] and customizable cookie banners.
36
-
37
- The table below shows what's included in each version:
38
-
39
- | | Free | PRO |
40
- |:------------------------------|:--------------:|:-------------------:|
41
- | [Blog] | &#x2714; | &#x2714; |
42
- | [Features] | &#x2714; | &#x2714; |
43
- | [Documentation][docs] | &#x2714; | &#x2714; |
44
- | [Portfolio] | | &#x2714; |
45
- | Printable [Resume] | | &#x2714; |
46
- | [Dark Mode][dark] | | &#x2714; |
47
- | [Built-In Search][search] | | &#x2714; |
48
- | [Custom Forms][forms] | | &#x2714; |
49
- | [Newsletter Box][news] | | &#x2714; |
50
- | [Grid layout][grid] | | &#x2714; |
51
- | [Offline Support][ofln] | | &#x2714; |
52
- | Table of Contents[^2] | | &#x2714; |
53
- | Cookie Banner | | &#x2714; |
54
- | No Hydejack Branding | | &#x2714; |
55
- | License | [GPL-3.0][lic] | [PRO] |
56
- | Source | [GitHub][src] | Included |
57
- | __Price__ | __Free__ | __$99__ <small>One-Time Purchase</small> [^22] |
58
- | | [__Download__][kit] <br/>-- or --<br/> [__Deploy to Netlify__][nfy] | [__Buy PRO__][buy] |
59
-
60
-
28
+ Hydejack is all static sites. _HTML_. All you need is a web server any web server to have a professional web presence that lasts a lifetime.
61
29
 
62
30
 
31
+ ## A Free Blogging Theme
63
32
  **Hydejack** started out as a free blogging theme for Jekyll — and continues to be so.
64
33
 
65
34
  <!--posts-->
@@ -76,7 +45,7 @@ Get a resume that's consistent across the board — whether it's on the web, mob
76
45
 
77
46
  [![Resume PDF](https://hydejack.com/assets/img/blog/resume.png)][resume]
78
47
 
79
- Front and center page of a print resume generated by Hydejack.
48
+ <p align="center">Front and center page of a print resume generated by Hydejack.
80
49
 
81
50
 
82
51
 
@@ -89,21 +58,23 @@ Write all content with Markdown. __Hydejack__ gives you [additional CSS classes]
89
58
 
90
59
  ![w3m Screenshot](https://hydejack.com/assets/img/blog/w3m.png)
91
60
 
92
- The Hydejack blog, as seen by the text browser `w3m`.
61
+ <p align="center">The Hydejack blog, as seen by the text browser `w3m`.
93
62
 
94
63
 
95
64
 
96
65
  ## Syntax Highlighting
97
66
  **Hydejack** features syntax highlighting, powered by [Rouge].
98
67
 
99
- ```js
100
- // file: `example.js`
101
- document.querySelector("hy-push-state").addEventListener("hy-push-state-load", () => {
102
- const supportsCodeHighlights = true; //!!
103
- });
68
+ ```html
69
+ <!-- file: `_includes/my-body.html` -->
70
+ <script type="module">
71
+ document.querySelector("hy-push-state").addEventListener("hy-push-state-load", () => {
72
+ const supportsCodeHighlights = false; // TBD!!
73
+ });
74
+ </script>
104
75
  ```
105
76
 
106
- Code blocks can have a filename and a caption.
77
+ <p align="center">Code blocks can have a filename and a caption.
107
78
 
108
79
 
109
80
 
@@ -112,16 +83,7 @@ They say math is beautiful — and with **Hydejack**'s [math support][math] it's
112
83
 
113
84
  ![Math example](https://hydejack.com/assets/img/blog/example-content-iii.jpg)
114
85
 
115
- Hydejack uses KaTeX to efficiently render math.
116
-
117
-
118
-
119
-
120
- ## Build an Audience
121
- The PRO version has built-in support for customizable [Tinyletter] newsletter subscription boxes.
122
-
123
- If you are using a different service like MailChimp, you can build a custom newsletter subscription box using [Custom Forms][forms].
124
-
86
+ <p align="center">Hydejack uses KaTeX to efficiently render math.
125
87
 
126
88
 
127
89
 
@@ -130,11 +92,11 @@ If you are using a different service like MailChimp, you can build a custom news
130
92
  An incomplete list of features included in all versions of **Hydejack**:
131
93
 
132
94
  * Responsive layout with unique design features for every screen size
133
- * Cover Pages for a stunning fist impression.
95
+ * Cover Pages for a stunning first impression.
134
96
  * Customizable sidebar and touch-enabled drawer menu
135
97
  * Single Page Web App-style page loading
136
98
  * Advanced FLIP animations, inspired by Material Design
137
- * Good [Google PageSpeed Score][gpss][^1]
99
+ * Good [Google PageSpeed Score][gpss][^11]
138
100
  * [Syntax highlighting][syntax], powered by [Rouge]
139
101
  * [LaTeX math blocks][latex], rendered with ether [KaTeX] or [MathJax] at your choice
140
102
  * Soft-coded labels: Change wording or translate to other languages via a single file
@@ -142,10 +104,16 @@ An incomplete list of features included in all versions of **Hydejack**:
142
104
  * Author section below each article and support for multiple authors
143
105
  * Built-in icons for many social networks
144
106
  * Simple and semantic HTML + Structured Data
145
- * Google Analytics and Google Fonts support
107
+ * Works with GitHub Pages out of the box[^12]
108
+
109
+ [^11]: Actual page load speed depends on your hosting provider, location, resolution and format of images, usage of 3rd party plugins, and other factors.
110
+
111
+ [^12]: Some limitations apply, most notably the need to use use MathJax instead of KaTeX for math block rendering.
112
+
113
+ *[FLIP]: First-Last-Invert-Play. A coding technique to achieve performant page transition animations.
146
114
 
147
115
 
148
- ## Comparison
116
+ ## Download
149
117
 
150
118
  There are two versions of **Hydejack**: The *Free Version* includes basic blogging functionality and most of Hydejack's [Features], such as dynamic page loading and advanced animations.
151
119
 
@@ -153,38 +121,38 @@ The *PRO Version* includes additional features for professionals, such as a [por
153
121
 
154
122
  The table below shows what's included in each version:
155
123
 
156
- | | Free | PRO |
157
- |:------------------------------|:--------------:|:-------------------:|
158
- | [Blog] | &#x2714; | &#x2714; |
159
- | [Features] | &#x2714; | &#x2714; |
160
- | [Documentation][docs] | &#x2714; | &#x2714; |
161
- | [Portfolio] | | &#x2714; |
162
- | Printable [Resume] | | &#x2714; |
163
- | [Dark Mode][dark] | | &#x2714; |
164
- | [Built-In Search][search] | | &#x2714; |
165
- | [Custom Forms][forms] | | &#x2714; |
166
- | [Newsletter Box][news] | | &#x2714; |
167
- | [Grid layout][grid] | | &#x2714; |
168
- | [Offline Support][ofln] | | &#x2714; |
169
- | Table of Contents[^2] | | &#x2714; |
170
- | Cookie Banner | | &#x2714; |
171
- | No Hydejack Branding | | &#x2714; |
172
- | License | [GPL-3.0][lic] | [PRO] |
173
- | Source | [GitHub][src] | Included |
174
- | __Price__ | __Free__ | __$99__ <small>One-Time Purchase</small> [^22] |
175
- | | [__Download__][kit] <br/>-- or --<br/> [__Deploy to Netlify__][nfy] | [__Buy PRO__][buy] |
176
-
177
- [^1]: Actual page load speed depends on your hosting provider, resolution of embedded images and usage of 3rd party plugins.
178
-
179
- [^2]: Large screens (> 1664px width) only.
180
-
181
- [^22]: Discounts may apply, check [Gumroad][buy] for up-to-date pricing.
124
+ | | Free | PRO |
125
+ |:------------------------------|:-------------------:|:-------------------:|
126
+ | [Blog] | &#x2714; | &#x2714; |
127
+ | [Features] | &#x2714; | &#x2714; |
128
+ | [Documentation][docs] | &#x2714; | &#x2714; |
129
+ | [Dark Mode][dark] | &#x2714; | &#x2714; |
130
+ | [Portfolio] | | &#x2714; |
131
+ | Printable [Resume] | | &#x2714; |
132
+ | [Built-In Search][search] | | &#x2714; |
133
+ | [Custom Forms][forms] | | &#x2714; |
134
+ | [Grid layout][grid] | | &#x2714; |
135
+ | [Offline Support][ofln] | | &#x2714; |
136
+ | Table of Contents[^21] | | &#x2714; |
137
+ | Cookie Banner | | &#x2714; |
138
+ | No Hydejack Branding | | &#x2714; |
139
+ | License | [GPL-3.0][lic] | [PRO] |
140
+ | Source | [GitHub][src] | Included |
141
+ | __Price__ | __Free__ | __$119__ <small>One-Time Purchase</small>[^xx] |
142
+ | | [__Download__][kit] | [__Buy PRO__][buy] |
143
+
144
+
145
+ [^21]: Large screens (> 1664px width) only.
146
+
147
+ [^xx]:
148
+ Discounts may apply, check [Gumroad][buy] for up-to-date pricing.
149
+
150
+
182
151
 
183
- *[FLIP]: First-Last-Invert-Play. A coding technique to achieve performant page transition animations.
184
152
 
185
153
 
186
154
  [blog]: https://hydejack.com/blog/
187
- [portfolio]: https://hydejack.com/projects/
155
+ [portfolio]: https://hydejack.com/showcase/
188
156
  [resume]: https://hydejack.com/resume/
189
157
  [download]: https://hydejack.com/download/
190
158
  [welcome]: https://hydejack.com/
@@ -208,13 +176,8 @@ The table below shows what's included in each version:
208
176
  [src]: https://github.com/hydecorp/hydejack
209
177
  [gem]: https://rubygems.org/gems/jekyll-theme-hydejack
210
178
  [buy]: https://gum.co/nuOluY
211
- [nfy]: https://app.netlify.com/start/deploy?repository=https://github.com/hydecorp/hydejack-starter-kit
212
- [dtn]: https://www.netlify.com/img/deploy/button.svg
213
179
 
214
- [gpss]: https://developers.google.com/speed/pagespeed/insights/?url=https://hydejack.com/
215
- [hy-push-state]: https://hydecorp.github.io/hy-push-state/
216
- [hy-drawer]: https://hydecorp.github.io/hy-drawer/
180
+ [gpss]: https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fhydejack.com%2Fdocs%2F
217
181
  [rouge]: http://rouge.jneen.net
218
182
  [katex]: https://khan.github.io/KaTeX/
219
183
  [mathjax]: https://www.mathjax.org/
220
- [tinyletter]: https://tinyletter.com/
data/_config.yml CHANGED
@@ -6,10 +6,7 @@ accent_image: /assets/img/sidebar-bg.jpg
6
6
  accent_color: rgb(79,177,186)
7
7
  theme_color: rgb(25,55,71)
8
8
 
9
- google_fonts: Roboto+Slab:700|Noto+Sans:400,400i,700,700i
10
- font: Noto Sans, Helvetica, Arial, sans-serif
11
- font_heading: Roboto Slab, Helvetica, Arial, sans-serif
12
- font-code: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
9
+ google_fonts: false
13
10
 
14
11
  hydejack:
15
12
  post_addons: [about, newsletter, related, random, comments]
@@ -13,7 +13,7 @@
13
13
  {% endfor %}
14
14
  </small></nav>
15
15
  {% endif %}
16
- <p><small>Powered by <a class="external" href="https://hydejack.com/">Hydejack</a> v<span id="_version">9.1.9</span></small></p>
16
+ <p><small>Powered by <a class="external" href="https://hydejack.com/">Hydejack</a> v<span id="_version">9.2.0</span></small></p>
17
17
  <hr class="sr-only"/>
18
18
  </footer>
19
19
  {% endif %}
@@ -1,4 +1,4 @@
1
-
1
+ {% include_cached pro/dark-mode-fix.html %}
2
2
 
3
3
  {% assign assets_url = "/assets/" | relative_url %}
4
4
  <hy-push-state
@@ -1,7 +1,7 @@
1
1
  <!--[if gt IE 10]><!---->
2
2
  <script nomodule>{% include scripts/nomodule.min.js %}</script>
3
- <script src="{{ '/assets/js/hydejack-9.1.9.js' | relative_url }}" type="module"></script>
4
- <script src="{{ '/assets/js/LEGACY-hydejack-9.1.9.js' | relative_url }}" nomodule defer></script>
3
+ <script src="{{ '/assets/js/hydejack-9.2.0.js' | relative_url }}" type="module"></script>
4
+ <script src="{{ '/assets/js/LEGACY-hydejack-9.2.0.js' | relative_url }}" nomodule defer></script>
5
5
  {% include my-scripts.html %}
6
6
  {% include body/analytics.html %}
7
7
  <!--<![endif]-->
@@ -10,4 +10,4 @@
10
10
 
11
11
  <meta name="application-name" content="{{ site.title }}">
12
12
 
13
- <meta name="generator" content="Hydejack v9.1.9" />
13
+ <meta name="generator" content="Hydejack v9.2.0" />
@@ -17,6 +17,14 @@
17
17
  <title>{{ site.data.strings.redirecting | default:"Redirecting..." }}</title>
18
18
  {% endunless %}
19
19
 
20
+ {% if site.hydejack.dark_mode.dynamic %}
21
+ <meta name="color-scheme" content="dark light">
22
+ {% elsif site.hydejack.dark_mode.always %}
23
+ <meta name="color-scheme" content="dark">
24
+ {% else %}
25
+ <meta name="color-scheme" content="light">
26
+ {% endif %}
27
+
20
28
  {% unless site.hydejack.no_theme_color %}
21
29
  <meta name="theme-color" content="{{ theme_color | default:'rgb(8,46,57)' }}">
22
30
  {% endunless %}
@@ -1,5 +1,5 @@
1
1
  {% assign google_fonts = site.google_fonts %}
2
- {% capture style_url %}{{ 'assets/css/hydejack-9.1.9.css' | relative_url }}{% endcapture %}
2
+ {% capture style_url %}{{ 'assets/css/hydejack-9.2.0.css' | relative_url }}{% endcapture %}
3
3
  {% capture icons_url %}{{ 'assets/icomoon/style.css' | relative_url }}{% endcapture %}
4
4
  {% if google_fonts %}
5
5
  {% capture fonts_url %}{{ site.google_fonts_url | default:'https://fonts.googleapis.com' }}/css?family={{ google_fonts | uri_escape }}&display=swap{% endcapture %}
@@ -1,5 +1,5 @@
1
1
  {% assign google_fonts = site.google_fonts %}
2
- {% capture style_url %}{{ 'assets/css/hydejack-9.1.9.css' | relative_url }}{% endcapture %}
2
+ {% capture style_url %}{{ 'assets/css/hydejack-9.2.0.css' | relative_url }}{% endcapture %}
3
3
  {% capture icons_url %}{{ 'assets/icomoon/style.css' | relative_url }}{% endcapture %}
4
4
  {% if google_fonts %}
5
5
  {% capture fonts_url %}{{ site.google_fonts_url | default:'https://fonts.googleapis.com' }}/css?family={{ google_fonts | uri_escape }}&display=swap{% endcapture %}
data/_includes/header.txt CHANGED
@@ -9,5 +9,5 @@
9
9
  * /\___/ \ \____/
10
10
  * \/__/ \/___/
11
11
  *
12
- * Powered by Hydejack v9.1.9 <https://hydejack.com/>
12
+ * Powered by Hydejack v9.2.0 <https://hydejack.com/>
13
13
  */
@@ -0,0 +1,7 @@
1
+ {% if site.hydejack.dark_mode.dynamic %}
2
+ <script>
3
+ window._sunrise = {{ site.hydejack.dark_mode.sunrise | default:"6" }};
4
+ window._sunset = {{ site.hydejack.dark_mode.sunset | default:"18" }};
5
+ {% include scripts/dark-mode-fix.min.js %}
6
+ </script>
7
+ {% endif %}
@@ -0,0 +1,10 @@
1
+ !function (window, document) {
2
+ var LM = 'light-mode';
3
+ var DM = 'dark-mode';
4
+ var h = new Date().getHours();
5
+ if ('matchMedia' in window && window.matchMedia('(prefers-color-scheme)')) return;
6
+ var m = h <= window._sunrise || h >= window._sunset ? DM : LM;
7
+ var n = m === DM ? LM : DM;
8
+ document.body.classList.add(m);
9
+ document.body.classList.remove(n);
10
+ }(window, document);
@@ -0,0 +1 @@
1
+ ((e,s)=>{var d="light-mode",a="dark-mode",o=(new Date).getHours();"matchMedia"in e&&e.matchMedia("(prefers-color-scheme)")||(e=(o=o<=e._sunrise||o>=e._sunset?a:d)==a?d:a,s.body.classList.add(o),s.body.classList.remove(e))})(window,document);
@@ -18,6 +18,12 @@
18
18
  @import "my-variables";
19
19
  @import "mixins";
20
20
 
21
+ {% if site.hydejack.dark_mode.dynamic %}
22
+ @import "pro/dark-mode-dynamic";
23
+ {% else %}
24
+ @import "pro/dark-mode";
25
+ {% endif %}
26
+
21
27
  @import "html";
22
28
 
23
29
  @import "pooleparty/__inline__/base";
@@ -1,5 +1,5 @@
1
- // {% assign color = include.color %}
2
- // {% assign theme_color = include.theme_color %}
1
+ {% assign color = include.color %}
2
+ {% assign theme_color = include.theme_color %}
3
3
 
4
4
  html {
5
5
  --accent-color: {{ color }};
@@ -7,4 +7,11 @@ html {
7
7
  --accent-color-highlight: #{fade-out({{ color }}, 0.9)};
8
8
  --accent-color-darkened: #{darken({{ color }}, 7.5%)};
9
9
  --theme-color: {{ theme_color }};
10
+ {% if site.github and site.hydejack.dart_sass_2_compat != true %}
11
+ --dark-mode-body-bg: #{hsl(hue({{ theme_color }}), (saturation({{ theme_color }}) / 8), 17.5%)};
12
+ --dark-mode-border-color: #{hsl(hue({{ theme_color }}), (saturation({{ theme_color }}) / 8), 22.5%)};
13
+ {% else %}
14
+ --dark-mode-body-bg: #{hsl(hue({{ theme_color }}), calc(saturation({{ theme_color }}) / 8), 17.5%)};
15
+ --dark-mode-border-color: #{hsl(hue({{ theme_color }}), calc(saturation({{ theme_color }}) / 8), 22.5%)};
16
+ {% endif %}
10
17
  }
@@ -18,6 +18,12 @@
18
18
  @import "my-variables";
19
19
  @import "mixins";
20
20
 
21
+ {% if site.hydejack.dark_mode.dynamic %}
22
+ @import "pro/dark-mode-dynamic";
23
+ {% else %}
24
+ @import "pro/dark-mode";
25
+ {% endif %}
26
+
21
27
  @import "reboot-mod";
22
28
 
23
29
  {% unless site.hydejack.no_inline_css or jekyll.environment == 'development' %}
@@ -101,3 +107,7 @@
101
107
  @import "tippy";
102
108
 
103
109
  @import "syntax";
110
+ @import "pro/syntax-dark";
111
+ {% if site.hydejack.dark_mode.dynamic %}
112
+ @import "pro/dark-mode-dynamic-syntax";
113
+ {% endif %}
@@ -30,7 +30,7 @@ $root-line-height: {{ vars.root_line_height | default:1.75 }};
30
30
 
31
31
  $font-weight: {{ vars.font_weight | default:400 }};
32
32
  $font-weight-bold: {{ vars.font_weight_bold | default:700 }};
33
- $font-weight-heading: {{ vars.font_weight_heading | default:700 }};
33
+ $font-weight-heading: {{ vars.font_weight_heading | default:900 }};
34
34
 
35
35
  $content-width: {{ vars.content_width | default:42 }}rem;
36
36
  $content-width-2: {{ vars.content_width_2 | default:48 }}rem;
@@ -6,4 +6,7 @@
6
6
  {% include templates/loading.html %}
7
7
  {% include templates/error.html %}
8
8
  {% include templates/permalink.html %}
9
+ {% if site.hydejack.dark_mode.icon %}
10
+ {% include templates/pro/dark-mode.html %}
11
+ {% endif %}
9
12
  </div>
@@ -0,0 +1,6 @@
1
+ <template id="_dark-mode-template">
2
+ <button id="_dark-mode" class="nav-btn no-hover" >
3
+ <span class="sr-only">{{ site.data.strings.dark_mode | default:"Dark Mode" }}</span>
4
+ <span class="icon-brightness-contrast"></span>
5
+ </button>
6
+ </template>
@@ -10,6 +10,6 @@
10
10
  /\___/ \ \____/
11
11
  \/__/ \/___/
12
12
 
13
- Powered by Hydejack v9.1.9 <https://hydejack.com/>
13
+ Powered by Hydejack v9.2.0 <https://hydejack.com/>
14
14
  -->{% capture _LINE_FEED %}
15
15
  {% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}</html>
data/_sass/_mixins.scss CHANGED
@@ -22,7 +22,7 @@
22
22
  --gray-text: #{$gray-text};
23
23
  --menu-text: #{$menu-text};
24
24
  --inv-body-color: #ccc;
25
- --inv-body-bg: #282828;
25
+ --inv-body-bg: var(--dark-mode-body-bg);
26
26
 
27
27
  .content {
28
28
  -webkit-font-smoothing: initial;
data/_sass/html.scss CHANGED
@@ -31,6 +31,4 @@ html {
31
31
  // --break-point-font-large: #{$break-point-font-large};
32
32
 
33
33
  --break-point-dynamic: #{$break-point-dynamic};
34
-
35
- @include light-mode();
36
34
  }
@@ -109,6 +109,7 @@ div.highlight {
109
109
  display: block;
110
110
  color: var(--gray)!important;
111
111
  background-color: var(--gray-bg);
112
+ overflow: clip;
112
113
 
113
114
  > span {
114
115
  font-size: smaller;
@@ -100,6 +100,7 @@ div.highlight {
100
100
  display: block;
101
101
  color: var(--gray)!important;
102
102
  background-color: var(--gray-bg);
103
+ overflow: clip;
103
104
 
104
105
  > span {
105
106
  font-size: smaller;
@@ -0,0 +1,9 @@
1
+ // Copyright (c) 2019 Florian Klampfer <https://qwtel.com/>
2
+
3
+ @import "pro/syntax-dark";
4
+
5
+ @media screen and (prefers-color-scheme: dark) {
6
+ body {
7
+ @include darkmode-syntax();
8
+ }
9
+ }
@@ -0,0 +1,20 @@
1
+ // Copyright (c) 2019 Florian Klampfer <https://qwtel.com/>
2
+
3
+ @import "pro/dark-mode";
4
+
5
+ @media screen and (prefers-color-scheme: light) {
6
+ body {
7
+ @include light-mode();
8
+ }
9
+ }
10
+
11
+ @media screen and (prefers-color-scheme: dark) {
12
+ body {
13
+ @include dark-mode();
14
+ }
15
+
16
+ .tippy-content {
17
+ -webkit-font-smoothing: initial;
18
+ -moz-osx-font-smoothing: initial;
19
+ }
20
+ }
@@ -0,0 +1,32 @@
1
+ // Copyright (c) 2019 Florian Klampfer <https://qwtel.com/>
2
+
3
+ #_dark-mode {
4
+ font-size: 1.25rem;
5
+ }
6
+
7
+ @mixin dark-mode() {
8
+ --body-color: #ccc;
9
+ --body-bg: var(--dark-mode-body-bg);
10
+ --border-color: var(--dark-mode-border-color);
11
+ --gray: rgba(255,255,255,.5);
12
+ --gray-bg: rgba(255,255,255,.033);
13
+ --gray-text: rgba(255,255,255,.625);
14
+ --menu-text: rgba(255,255,255,.25);
15
+ --inv-body-color: #{$body-color};
16
+ --inv-body-bg: #{$body-bg};
17
+
18
+ .content {
19
+ -webkit-font-smoothing: antialiased;
20
+ -moz-osx-font-smoothing: grayscale;
21
+ }
22
+ }
23
+
24
+ @media screen {
25
+ body, body.light-mode {
26
+ @include light-mode();
27
+ }
28
+
29
+ body.dark-mode {
30
+ @include dark-mode();
31
+ }
32
+ }