hexo-theme-gnix 9.0.0 → 10.0.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 (66) hide show
  1. package/README.md +4 -2
  2. package/include/hexo/feed.js +5 -5
  3. package/include/hexo/filter.js +25 -1
  4. package/include/hexo/generator/archive.js +116 -0
  5. package/include/hexo/generator/home.js +64 -0
  6. package/include/hexo/generator/index.js +82 -0
  7. package/include/hexo/generator/md_generator.js +87 -0
  8. package/include/hexo/generator/page.js +55 -0
  9. package/include/hexo/generator/tag.js +84 -0
  10. package/include/hexo/helper.js +38 -0
  11. package/include/hexo/i18n.js +183 -0
  12. package/include/util/article_font.js +132 -0
  13. package/include/util/i18n.js +280 -0
  14. package/include/util/theme.js +84 -0
  15. package/languages/en.yml +28 -0
  16. package/languages/zh-CN.yml +28 -0
  17. package/layout/archive.jsx +131 -127
  18. package/layout/common/article.jsx +283 -16
  19. package/layout/common/article_info.jsx +339 -0
  20. package/layout/common/article_media.jsx +11 -4
  21. package/layout/common/comment.jsx +15 -7
  22. package/layout/common/footer.jsx +6 -5
  23. package/layout/common/head.jsx +121 -32
  24. package/layout/common/navbar.jsx +195 -65
  25. package/layout/common/theme_selector.jsx +16 -14
  26. package/layout/layout.jsx +43 -5
  27. package/layout/misc/open_graph.jsx +162 -66
  28. package/layout/misc/paginator.jsx +2 -8
  29. package/layout/plugin/cookie_consent.jsx +252 -53
  30. package/layout/plugin/swup.jsx +1 -1
  31. package/layout/search/insight.jsx +1 -1
  32. package/layout/tag.jsx +3 -2
  33. package/layout/tags.jsx +81 -73
  34. package/package.json +5 -5
  35. package/scripts/index.js +1 -0
  36. package/source/css/archive.css +225 -180
  37. package/source/css/default.css +1162 -98
  38. package/source/css/responsive.css +426 -0
  39. package/source/css/shiki/shiki.css +12 -2081
  40. package/source/css/tags.css +183 -0
  41. package/source/css/twikoo.css +1049 -1045
  42. package/source/img/favicon.svg +1 -6
  43. package/source/img/og_image.webp +0 -0
  44. package/source/js/article-font-utils.js +99 -0
  45. package/source/js/busuanzi.js +91 -24
  46. package/source/js/components/chat.js +169 -50
  47. package/source/js/components/image-carousel.js +152 -108
  48. package/source/js/components/sidenote.js +210 -0
  49. package/source/js/components/text-image-section.js +78 -90
  50. package/source/js/components/theme-stacked.js +65 -33
  51. package/source/js/components/tree.js +30 -16
  52. package/source/js/decrypt.js +7 -2
  53. package/source/js/main.js +428 -5
  54. package/source/js/swup.js +39 -0
  55. package/source/js/theme-selector.js +26 -16
  56. package/include/hexo/generator.js +0 -53
  57. package/layout/misc/article_licensing.jsx +0 -99
  58. package/source/css/responsive/desktop.css +0 -36
  59. package/source/css/responsive/mobile.css +0 -29
  60. package/source/css/responsive/tablet.css +0 -43
  61. package/source/css/responsive/touch.css +0 -155
  62. package/source/img/logo.svg +0 -9
  63. package/source/js/archive-breadcrumb.js +0 -132
  64. package/source/js/host/cookieconsent/3.1.1/build/cookieconsent.min.css +0 -6
  65. package/source/js/host/cookieconsent/3.1.1/build/cookieconsent.min.js +0 -1
  66. package/source/js/swup.bundle.js +0 -1
@@ -0,0 +1,183 @@
1
+ .tags-page {
2
+ --tags-line: color-mix(in oklch, var(--surface1) 72%, var(--text));
3
+ --tags-muted: color-mix(in oklch, var(--subtext1) 78%, var(--base));
4
+ --tags-accent: var(--lavender);
5
+ display: grid;
6
+ gap: 1.5rem;
7
+ padding: 1.25em 1.25rem 0;
8
+ }
9
+
10
+ .tags-hero {
11
+ display: grid;
12
+ grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
13
+ gap: 1.25rem;
14
+ align-items: start;
15
+ padding-bottom: 1.25rem;
16
+ border-bottom: 1px solid var(--tags-line);
17
+ }
18
+
19
+ .tags-eyebrow {
20
+ margin: 0 0 0.35rem;
21
+ color: var(--tags-muted);
22
+ font-family: var(--font-mono);
23
+ font-size: 0.75rem;
24
+ font-weight: 600;
25
+ letter-spacing: 0.08em;
26
+ text-transform: uppercase;
27
+ }
28
+
29
+ .tags-hero h1 {
30
+ margin: 0;
31
+ color: var(--text);
32
+ font-family: var(--font-serif);
33
+ font-size: 2.75rem;
34
+ font-weight: 700;
35
+ line-height: 1;
36
+ letter-spacing: 0;
37
+ }
38
+
39
+ .tags-hero__summary {
40
+ max-width: 34rem;
41
+ margin: 1rem 0 0;
42
+ color: var(--subtext1);
43
+ font-family: var(--font-serif);
44
+ font-style: italic;
45
+ }
46
+
47
+ .tags-stats {
48
+ display: grid;
49
+ gap: 0.45rem;
50
+ margin: 0;
51
+ }
52
+
53
+ .tags-stats > div {
54
+ display: grid;
55
+ grid-template-columns: 4.5rem minmax(0, 1fr);
56
+ gap: 0.65rem;
57
+ align-items: baseline;
58
+ }
59
+
60
+ .tags-stats dt {
61
+ color: var(--tags-muted);
62
+ font-family: var(--font-mono);
63
+ font-size: 0.72rem;
64
+ text-transform: uppercase;
65
+ }
66
+
67
+ .tags-stats dd {
68
+ min-width: 0;
69
+ margin: 0;
70
+ color: var(--text);
71
+ font-weight: 700;
72
+ overflow-wrap: anywhere;
73
+ }
74
+
75
+ .tags-index {
76
+ display: flex;
77
+ flex-wrap: wrap;
78
+ gap: 0.55rem 1rem;
79
+ align-items: baseline;
80
+ contain: layout paint style;
81
+ }
82
+
83
+ .tags-index__item {
84
+ --tag-size: 1rem;
85
+ display: inline-flex;
86
+ gap: 0.35rem;
87
+ align-items: baseline;
88
+ padding-block: 0.15rem;
89
+ color: var(--text);
90
+ font-family: var(--font-serif);
91
+ font-style: italic;
92
+ font-synthesis: none;
93
+ font-size: var(--tag-size);
94
+ line-height: 1.2;
95
+ text-decoration: none;
96
+ text-decoration-color: transparent;
97
+ text-decoration-thickness: 1px;
98
+ text-underline-offset: 0.25em;
99
+ transition:
100
+ color 140ms ease,
101
+ text-decoration-color 140ms ease;
102
+ }
103
+
104
+ .tags-index__item::before {
105
+ color: var(--tags-accent);
106
+ content: "#";
107
+ font-family: var(--font-mono);
108
+ font-size: 0.76em;
109
+ }
110
+
111
+ .tags-index__item:hover,
112
+ .tags-index__item:focus-visible {
113
+ color: var(--tags-accent);
114
+ text-decoration-color: currentColor;
115
+ }
116
+
117
+ .tags-index__item:focus-visible {
118
+ outline: 2px solid color-mix(in oklch, var(--tags-accent) 68%, transparent);
119
+ outline-offset: 3px;
120
+ }
121
+
122
+ .tags-index__name {
123
+ overflow-wrap: anywhere;
124
+ }
125
+
126
+ .tags-index__count {
127
+ color: var(--tags-muted);
128
+ font-family: var(--font-mono);
129
+ font-size: 0.72rem;
130
+ }
131
+
132
+ .tags-index__count::before {
133
+ content: "(";
134
+ }
135
+
136
+ .tags-index__count::after {
137
+ content: ")";
138
+ }
139
+
140
+ @media (max-width: 720px) {
141
+ .tags-page {
142
+ gap: 1.25rem;
143
+ }
144
+
145
+ .tags-hero {
146
+ grid-template-columns: 1fr;
147
+ }
148
+
149
+ .tags-hero h1 {
150
+ font-size: 2.35rem;
151
+ }
152
+
153
+ .tags-stats {
154
+ grid-template-columns: repeat(3, minmax(0, 1fr));
155
+ gap: 0.5rem;
156
+ }
157
+
158
+ .tags-stats > div {
159
+ display: block;
160
+ border-left: 1px solid color-mix(in oklch, var(--tags-line) 72%, transparent);
161
+ padding: 0 0 0 0.6rem;
162
+ }
163
+ }
164
+
165
+ @media (max-width: 480px) {
166
+ .tags-page {
167
+ padding: 1rem 0.875rem 0;
168
+ }
169
+
170
+ .tags-hero h1 {
171
+ font-size: 2rem;
172
+ }
173
+
174
+ .tags-index {
175
+ gap: 0.5rem 0.85rem;
176
+ }
177
+ }
178
+
179
+ @media (prefers-reduced-motion: reduce) {
180
+ .tags-index__item {
181
+ transition: none;
182
+ }
183
+ }