hexo-theme-gnix 4.2.2 → 4.2.4

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.
package/README.md CHANGED
@@ -51,6 +51,12 @@ bun i hexo-renderer-markdown-exit
51
51
  </tr>
52
52
  </table>
53
53
 
54
+ ## Links
55
+
56
+ - Change log: http://vluv.space/change
57
+ - Live Preview: http://vluv.space/test_markdown/
58
+
59
+
54
60
  ## Credit
55
61
 
56
62
  [ppoffice/hexo-theme-icarus: A simple, delicate, and modern theme for the static site generator Hexo.](https://github.com/ppoffice/hexo-theme-icarus)
package/layout/layout.jsx CHANGED
@@ -21,6 +21,7 @@ module.exports = class extends Component {
21
21
  <section class="section">
22
22
  <div
23
23
  class="main-content"
24
+ data-pjax
24
25
  dangerouslySetInnerHTML={{ __html: body }}
25
26
  ></div>
26
27
  </section>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-gnix",
3
- "version": "4.2.2",
3
+ "version": "4.2.4",
4
4
  "author": "Efterklang <gaojiaxing0220@gmail.com>",
5
5
  "license": "MIT",
6
6
  "description": "Second generation of Hexo theme Icarus, now with Catppuccin flavor and night mode support.",
@@ -93,7 +93,7 @@
93
93
  --sapphire: #5e81ac;
94
94
  --blue: #81a1c1;
95
95
  --lavender: #5e81ac;
96
- --text: #2e3440;
96
+ --text: #4c566a;
97
97
  --subtext1: #3b4252;
98
98
  --subtext0: #434c5e;
99
99
  --overlay2: #4c566a;
@@ -277,22 +277,13 @@ blockquote::before {
277
277
  background: hsl(from var(--mantle) h s l / 0.95);
278
278
  }
279
279
 
280
- .navbar-item.is-active {
281
- color: var(--flamingo);
282
- }
283
-
284
- .navbar-item:focus,
285
- .navbar-item:hover {
286
- color: var(--lavender);
287
- }
288
-
289
280
  body {
290
281
  background: var(--mantle);
291
282
  color: var(--text);
292
283
  }
293
284
 
294
285
  .card {
295
- border: .5px dashed var(--surface0);
286
+ border: 0.5px dashed var(--surface0);
296
287
  }
297
288
 
298
289
  input.task-list-item-checkbox:checked {
@@ -566,16 +557,6 @@ body {
566
557
  flex-shrink: 0;
567
558
  }
568
559
 
569
- .navbar-start {
570
- justify-content: flex-start;
571
- margin-right: auto;
572
- }
573
-
574
- .navbar-end {
575
- justify-content: flex-end;
576
- margin-left: auto;
577
- }
578
-
579
560
  /* #endregion Navbar */
580
561
 
581
562
  /* #region Theme Selector */
@@ -762,26 +743,23 @@ body {
762
743
 
763
744
  .tabs-tab-button {
764
745
  flex: 1;
765
- padding: 16px 5px;
746
+ padding: 0.5em 0;
766
747
  border: none;
767
748
  background: 0 0;
768
- font-size: 15px;
749
+ font-size: 1em;
769
750
  font-weight: bold;
770
751
  cursor: pointer;
771
752
  position: relative;
772
753
  transition: color 0.3s ease;
773
754
  outline: 0;
774
-
775
- &:hover {
755
+ font-family: var(--font-sans-serif);
756
+ color: var(--text);
757
+ &:hover,
758
+ &.active {
776
759
  color: var(--lavender);
777
760
  }
778
761
  }
779
762
 
780
- .tabs-tab-button.active,
781
- .tabs-tab-button[data-active] {
782
- color: var(--lavender);
783
- }
784
-
785
763
  .tabs-tab-button.active::after {
786
764
  content: "";
787
765
  position: absolute;
@@ -790,12 +768,11 @@ body {
790
768
  width: 100%;
791
769
  height: 2px;
792
770
  background-color: var(--lavender);
793
- border-radius: 2px 2px 0 0;
794
771
  animation: slideIn 0.3s ease;
795
772
  }
796
773
 
797
774
  .tabs-tabs-container {
798
- padding: 18px 0 10px 0;
775
+ padding: 0.8em 0 10px 0;
799
776
  }
800
777
 
801
778
  .tabs-tab-content {
@@ -1508,4 +1485,4 @@ input.searchbox-input {
1508
1485
  object-fit: cover;
1509
1486
  }
1510
1487
 
1511
- /* #endregion Article Cover */
1488
+ /* #endregion Article Cover */
@@ -161,4 +161,4 @@
161
161
  padding: 0;
162
162
  margin: 0;
163
163
  display: contents;
164
- }
164
+ }
Binary file
package/source/js/pjax.js CHANGED
@@ -6,20 +6,15 @@
6
6
  try {
7
7
  const Pjax = window.Pjax || (() => {});
8
8
  pjax = new Pjax({
9
- selectors: [
10
- "[data-pjax]",
11
- ".pjax-reload",
12
- "head title",
13
- ".main-content",
14
- ".navbar-start",
15
- ".navbar-end",
16
- ".searchbox link",
17
- ".searchbox script",
18
- "#comments link",
19
- "#comments script",
20
- ],
9
+ selectors: ["[data-pjax]", ".pjax-reload", "head title"],
21
10
  cacheBust: false,
22
11
  });
12
+
13
+ window.addEventListener("popstate", () => {
14
+ if (pjax && pjax.loadUrl) {
15
+ pjax.loadUrl(window.location.href);
16
+ }
17
+ });
23
18
  } catch (e) {
24
19
  console.warn(`PJAX error: ${e}`);
25
20
  }