hexo-theme-ayeria 1.9.11 → 1.9.13
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/LICENSE +37 -37
- package/README.en.md +560 -560
- package/README.md +560 -560
- package/_config.yml +271 -271
- package/_scaffolds/post.md +8 -8
- package/index.js +11 -2
- package/languages/de.yml +39 -39
- package/languages/default.yml +40 -39
- package/languages/en.yml +40 -39
- package/languages/es.yml +39 -39
- package/languages/fr.yml +39 -39
- package/languages/ja.yml +39 -39
- package/languages/ko.yml +39 -39
- package/languages/nl.yml +39 -39
- package/languages/no.yml +39 -39
- package/languages/pt.yml +39 -39
- package/languages/ru.yml +39 -39
- package/languages/vi.yml +39 -39
- package/languages/zh-CN.yml +40 -39
- package/languages/zh-TW.yml +40 -39
- package/layout/_partial/ads.ejs +8 -8
- package/layout/_partial/after-footer.ejs +84 -84
- package/layout/_partial/archive-post.ejs +13 -13
- package/layout/_partial/archive.ejs +61 -61
- package/layout/_partial/article.ejs +94 -94
- package/layout/_partial/ayeria.ejs +53 -53
- package/layout/_partial/baidu-analytics.ejs +11 -11
- package/layout/_partial/broadcast.ejs +19 -19
- package/layout/_partial/float-btns.ejs +7 -7
- package/layout/_partial/footer.ejs +61 -61
- package/layout/_partial/google-analytics.ejs +10 -10
- package/layout/_partial/head.ejs +64 -68
- package/layout/_partial/katex.ejs +21 -21
- package/layout/_partial/lock.ejs +37 -37
- package/layout/_partial/mathjax.ejs +18 -18
- package/layout/_partial/modal.ejs +70 -76
- package/layout/_partial/music.ejs +15 -15
- package/layout/_partial/post/albums.ejs +16 -16
- package/layout/_partial/post/author.ejs +7 -7
- package/layout/_partial/post/busuanzi.ejs +4 -4
- package/layout/_partial/post/category.ejs +9 -9
- package/layout/_partial/post/clipboard.ejs +54 -54
- package/layout/_partial/post/date.ejs +2 -2
- package/layout/_partial/post/gallery.ejs +15 -15
- package/layout/_partial/post/giscus.ejs +40 -40
- package/layout/_partial/post/gitalk.ejs +12 -12
- package/layout/_partial/post/justifiedGallery.ejs +8 -8
- package/layout/_partial/post/nav.ejs +22 -22
- package/layout/_partial/post/search.ejs +3 -3
- package/layout/_partial/post/share.ejs +53 -53
- package/layout/_partial/post/tag.ejs +5 -5
- package/layout/_partial/post/title.ejs +16 -16
- package/layout/_partial/post/tocbot.ejs +6 -6
- package/layout/_partial/post/topping.ejs +2 -2
- package/layout/_partial/post/twikoo.ejs +7 -7
- package/layout/_partial/post/valine.ejs +48 -48
- package/layout/_partial/post/word.ejs +19 -19
- package/layout/_partial/sidebar.ejs +48 -48
- package/layout/_partial/viewer.ejs +105 -105
- package/layout/categories.ejs +8 -8
- package/layout/friends.ejs +19 -19
- package/layout/index.ejs +4 -4
- package/layout/layout.ejs +35 -30
- package/layout/page.ejs +2 -2
- package/layout/plain-page.ejs +4 -4
- package/layout/post.ejs +2 -2
- package/layout/tags.ejs +88 -88
- package/package.json +39 -39
- package/scripts/default_config.js +6 -6
- package/scripts/events/index.js +11 -11
- package/scripts/events/lib/hello.js +38 -38
- package/scripts/events/lib/merge-configs.js +28 -28
- package/scripts/filters/index.js +13 -13
- package/scripts/filters/meta_generator.js +17 -17
- package/scripts/helpers/ayeria-plus-vendors.js +9 -9
- package/scripts/helpers/category-tree.js +90 -90
- package/scripts/helpers/wordcount.js +39 -39
- package/scripts/lib/core.js +25 -25
- package/scripts/utils/join-path.js +12 -12
- package/scripts/utils/object.js +31 -31
- package/source/404.html +187 -187
- package/source/css/ayeria-layout.styl +48 -48
- package/source/css/clipboard.styl +37 -37
- package/source/css/custom.styl +17 -17
- package/source/css/fonts/remixicon.css +1816 -1816
- package/source/css/fonts/remixicon.svg +5329 -5329
- package/source/data/random-sentences.txt +2629 -141
- package/source/dist/main.css +1 -1
- package/source/dist/main.js +1 -1
- package/source/js/clickBoom1.js +152 -152
- package/source/js/clickBoom2.js +180 -180
- package/source/js/jquery-3.6.0.min.js +2 -2
- package/source/js/lazyload.min.js +7 -7
- package/source/js/search.js +126 -126
- package/source/js/random-sentences.js +0 -166
package/source/404.html
CHANGED
|
@@ -1,187 +1,187 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>404 - 页面未找到</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
7
|
-
<meta name="robots" content="noindex">
|
|
8
|
-
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
|
9
|
-
<style>
|
|
10
|
-
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
|
11
|
-
|
|
12
|
-
html { font-size: 62.5%; }
|
|
13
|
-
|
|
14
|
-
body {
|
|
15
|
-
font-family: "Helvetica Neue", Helvetica, "PingFang SC",
|
|
16
|
-
"Hiragino Sans GB", "Microsoft YaHei", "微软雅黑",
|
|
17
|
-
Arial, sans-serif;
|
|
18
|
-
font-size: 1.4rem;
|
|
19
|
-
line-height: 1.7;
|
|
20
|
-
min-height: 100vh;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
background: url('/images/cover2.webp') no-repeat center center fixed;
|
|
25
|
-
background-size: cover;
|
|
26
|
-
color: #fff;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
body::before {
|
|
31
|
-
content: '';
|
|
32
|
-
position: fixed;
|
|
33
|
-
inset: 0;
|
|
34
|
-
background: rgba(0, 0, 0, 0.35);
|
|
35
|
-
z-index: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.error-content {
|
|
39
|
-
position: relative;
|
|
40
|
-
z-index: 1;
|
|
41
|
-
text-align: center;
|
|
42
|
-
padding: 2rem;
|
|
43
|
-
animation: fadeIn 0.8s ease-out;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@keyframes fadeIn {
|
|
47
|
-
from { opacity: 0; transform: translateY(16px); }
|
|
48
|
-
to { opacity: 1; transform: translateY(0); }
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.error-code {
|
|
52
|
-
font-family: "Titillium Web", "PingFang SC", "Hiragino Sans GB",
|
|
53
|
-
"Microsoft JhengHei", "Microsoft YaHei",
|
|
54
|
-
Helvetica Neue, Helvetica, Arial, sans-serif;
|
|
55
|
-
font-size: 7rem;
|
|
56
|
-
font-weight: 700;
|
|
57
|
-
letter-spacing: -0.02em;
|
|
58
|
-
line-height: 1;
|
|
59
|
-
color: #fff;
|
|
60
|
-
opacity: 0.95;
|
|
61
|
-
text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
|
|
62
|
-
margin-bottom: 1rem;
|
|
63
|
-
user-select: none;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.error-message {
|
|
67
|
-
font-size: 2.4rem;
|
|
68
|
-
font-weight: 600;
|
|
69
|
-
color: rgba(255, 255, 255, 0.9);
|
|
70
|
-
margin: 0.5rem 0;
|
|
71
|
-
text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.error-description {
|
|
75
|
-
font-size: 1.4rem;
|
|
76
|
-
color: rgba(255, 255, 255, 0.7);
|
|
77
|
-
line-height: 1.8;
|
|
78
|
-
margin: 0.8rem 0 2.5rem;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.home-btn {
|
|
82
|
-
display: inline-flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
gap: 8px;
|
|
85
|
-
padding: 12px 28px;
|
|
86
|
-
border-radius: 10px;
|
|
87
|
-
background: rgba(255, 255, 255, 0.15);
|
|
88
|
-
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
89
|
-
color: #fff;
|
|
90
|
-
font-size: 1.4rem;
|
|
91
|
-
font-weight: 500;
|
|
92
|
-
text-decoration: none;
|
|
93
|
-
backdrop-filter: blur(8px);
|
|
94
|
-
-webkit-backdrop-filter: blur(8px);
|
|
95
|
-
transition: all 0.3s ease-in-out;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.home-btn:hover {
|
|
99
|
-
background: rgba(255, 255, 255, 0.25);
|
|
100
|
-
border-color: rgba(255, 255, 255, 0.5);
|
|
101
|
-
transform: translateY(-2px);
|
|
102
|
-
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.quick-nav {
|
|
106
|
-
margin-top: 1.5rem;
|
|
107
|
-
font-size: 1.2rem;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.quick-nav a {
|
|
111
|
-
color: rgba(255, 255, 255, 0.6);
|
|
112
|
-
text-decoration: none;
|
|
113
|
-
transition: color 0.3s ease;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.quick-nav a:hover {
|
|
117
|
-
color: #fff;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.nav-divider {
|
|
121
|
-
margin: 0 0.6rem;
|
|
122
|
-
color: rgba(255, 255, 255, 0.3);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.error-footer {
|
|
126
|
-
position: fixed;
|
|
127
|
-
bottom: 0;
|
|
128
|
-
left: 0;
|
|
129
|
-
right: 0;
|
|
130
|
-
padding: 1rem;
|
|
131
|
-
text-align: center;
|
|
132
|
-
font-size: 1.2rem;
|
|
133
|
-
color: rgba(255, 255, 255, 0.35);
|
|
134
|
-
z-index: 1;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.error-footer a {
|
|
138
|
-
color: rgba(255, 255, 255, 0.5);
|
|
139
|
-
text-decoration: none;
|
|
140
|
-
transition: color 0.3s ease;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.error-footer a:hover {
|
|
144
|
-
color: rgba(255, 255, 255, 0.8);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@media (max-width: 768px) {
|
|
148
|
-
.error-code { font-size: 4.5rem; }
|
|
149
|
-
.error-message { font-size: 2rem; }
|
|
150
|
-
.error-description { font-size: 1.3rem; }
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
@media (max-width: 480px) {
|
|
154
|
-
.error-content { padding: 1.5rem; }
|
|
155
|
-
.error-code { font-size: 4rem; }
|
|
156
|
-
.error-message { font-size: 1.8rem; }
|
|
157
|
-
.home-btn { padding: 10px 22px; font-size: 1.3rem; }
|
|
158
|
-
}
|
|
159
|
-
</style>
|
|
160
|
-
</head>
|
|
161
|
-
<body>
|
|
162
|
-
<div class="error-content">
|
|
163
|
-
<div class="error-code">404</div>
|
|
164
|
-
<p class="error-message">页面未找到</p>
|
|
165
|
-
<p class="error-description">
|
|
166
|
-
你访问的页面不存在或已被移除。<br>
|
|
167
|
-
The page you're looking for doesn't exist.
|
|
168
|
-
</p>
|
|
169
|
-
<a href="/" class="home-btn">
|
|
170
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor">
|
|
171
|
-
<path d="M19 21H5a1 1 0 0 1-1-1v-9H1l10.327-9.388a1 1 0 0 1 1.346 0L23 11h-3v9a1 1 0 0 1-1 1zm-6-2h5V9.157l-6-5.454-6 5.454V19h5v-6h2v6z"/>
|
|
172
|
-
</svg>
|
|
173
|
-
返回首页
|
|
174
|
-
</a>
|
|
175
|
-
<nav class="quick-nav">
|
|
176
|
-
<a href="/archives">全部文章</a>
|
|
177
|
-
<span class="nav-divider">·</span>
|
|
178
|
-
<a href="/categories">文章分类</a>
|
|
179
|
-
<span class="nav-divider">·</span>
|
|
180
|
-
<a href="/about">关于本站</a>
|
|
181
|
-
</nav>
|
|
182
|
-
</div>
|
|
183
|
-
<footer class="error-footer">
|
|
184
|
-
© 2022-2026 · <a href="/">Kaleid Scoper</a>
|
|
185
|
-
</footer>
|
|
186
|
-
</body>
|
|
187
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>404 - 页面未找到</title>
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
7
|
+
<meta name="robots" content="noindex">
|
|
8
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
|
9
|
+
<style>
|
|
10
|
+
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
|
11
|
+
|
|
12
|
+
html { font-size: 62.5%; }
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
font-family: "Helvetica Neue", Helvetica, "PingFang SC",
|
|
16
|
+
"Hiragino Sans GB", "Microsoft YaHei", "微软雅黑",
|
|
17
|
+
Arial, sans-serif;
|
|
18
|
+
font-size: 1.4rem;
|
|
19
|
+
line-height: 1.7;
|
|
20
|
+
min-height: 100vh;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
background: url('/images/cover2.webp') no-repeat center center fixed;
|
|
25
|
+
background-size: cover;
|
|
26
|
+
color: #fff;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
body::before {
|
|
31
|
+
content: '';
|
|
32
|
+
position: fixed;
|
|
33
|
+
inset: 0;
|
|
34
|
+
background: rgba(0, 0, 0, 0.35);
|
|
35
|
+
z-index: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.error-content {
|
|
39
|
+
position: relative;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
text-align: center;
|
|
42
|
+
padding: 2rem;
|
|
43
|
+
animation: fadeIn 0.8s ease-out;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@keyframes fadeIn {
|
|
47
|
+
from { opacity: 0; transform: translateY(16px); }
|
|
48
|
+
to { opacity: 1; transform: translateY(0); }
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.error-code {
|
|
52
|
+
font-family: "Titillium Web", "PingFang SC", "Hiragino Sans GB",
|
|
53
|
+
"Microsoft JhengHei", "Microsoft YaHei",
|
|
54
|
+
Helvetica Neue, Helvetica, Arial, sans-serif;
|
|
55
|
+
font-size: 7rem;
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
letter-spacing: -0.02em;
|
|
58
|
+
line-height: 1;
|
|
59
|
+
color: #fff;
|
|
60
|
+
opacity: 0.95;
|
|
61
|
+
text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
|
|
62
|
+
margin-bottom: 1rem;
|
|
63
|
+
user-select: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.error-message {
|
|
67
|
+
font-size: 2.4rem;
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
color: rgba(255, 255, 255, 0.9);
|
|
70
|
+
margin: 0.5rem 0;
|
|
71
|
+
text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.error-description {
|
|
75
|
+
font-size: 1.4rem;
|
|
76
|
+
color: rgba(255, 255, 255, 0.7);
|
|
77
|
+
line-height: 1.8;
|
|
78
|
+
margin: 0.8rem 0 2.5rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.home-btn {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: 8px;
|
|
85
|
+
padding: 12px 28px;
|
|
86
|
+
border-radius: 10px;
|
|
87
|
+
background: rgba(255, 255, 255, 0.15);
|
|
88
|
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
89
|
+
color: #fff;
|
|
90
|
+
font-size: 1.4rem;
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
text-decoration: none;
|
|
93
|
+
backdrop-filter: blur(8px);
|
|
94
|
+
-webkit-backdrop-filter: blur(8px);
|
|
95
|
+
transition: all 0.3s ease-in-out;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.home-btn:hover {
|
|
99
|
+
background: rgba(255, 255, 255, 0.25);
|
|
100
|
+
border-color: rgba(255, 255, 255, 0.5);
|
|
101
|
+
transform: translateY(-2px);
|
|
102
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.quick-nav {
|
|
106
|
+
margin-top: 1.5rem;
|
|
107
|
+
font-size: 1.2rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.quick-nav a {
|
|
111
|
+
color: rgba(255, 255, 255, 0.6);
|
|
112
|
+
text-decoration: none;
|
|
113
|
+
transition: color 0.3s ease;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.quick-nav a:hover {
|
|
117
|
+
color: #fff;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.nav-divider {
|
|
121
|
+
margin: 0 0.6rem;
|
|
122
|
+
color: rgba(255, 255, 255, 0.3);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.error-footer {
|
|
126
|
+
position: fixed;
|
|
127
|
+
bottom: 0;
|
|
128
|
+
left: 0;
|
|
129
|
+
right: 0;
|
|
130
|
+
padding: 1rem;
|
|
131
|
+
text-align: center;
|
|
132
|
+
font-size: 1.2rem;
|
|
133
|
+
color: rgba(255, 255, 255, 0.35);
|
|
134
|
+
z-index: 1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.error-footer a {
|
|
138
|
+
color: rgba(255, 255, 255, 0.5);
|
|
139
|
+
text-decoration: none;
|
|
140
|
+
transition: color 0.3s ease;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.error-footer a:hover {
|
|
144
|
+
color: rgba(255, 255, 255, 0.8);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@media (max-width: 768px) {
|
|
148
|
+
.error-code { font-size: 4.5rem; }
|
|
149
|
+
.error-message { font-size: 2rem; }
|
|
150
|
+
.error-description { font-size: 1.3rem; }
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@media (max-width: 480px) {
|
|
154
|
+
.error-content { padding: 1.5rem; }
|
|
155
|
+
.error-code { font-size: 4rem; }
|
|
156
|
+
.error-message { font-size: 1.8rem; }
|
|
157
|
+
.home-btn { padding: 10px 22px; font-size: 1.3rem; }
|
|
158
|
+
}
|
|
159
|
+
</style>
|
|
160
|
+
</head>
|
|
161
|
+
<body>
|
|
162
|
+
<div class="error-content">
|
|
163
|
+
<div class="error-code">404</div>
|
|
164
|
+
<p class="error-message">页面未找到</p>
|
|
165
|
+
<p class="error-description">
|
|
166
|
+
你访问的页面不存在或已被移除。<br>
|
|
167
|
+
The page you're looking for doesn't exist.
|
|
168
|
+
</p>
|
|
169
|
+
<a href="/" class="home-btn">
|
|
170
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor">
|
|
171
|
+
<path d="M19 21H5a1 1 0 0 1-1-1v-9H1l10.327-9.388a1 1 0 0 1 1.346 0L23 11h-3v9a1 1 0 0 1-1 1zm-6-2h5V9.157l-6-5.454-6 5.454V19h5v-6h2v6z"/>
|
|
172
|
+
</svg>
|
|
173
|
+
返回首页
|
|
174
|
+
</a>
|
|
175
|
+
<nav class="quick-nav">
|
|
176
|
+
<a href="/archives">全部文章</a>
|
|
177
|
+
<span class="nav-divider">·</span>
|
|
178
|
+
<a href="/categories">文章分类</a>
|
|
179
|
+
<span class="nav-divider">·</span>
|
|
180
|
+
<a href="/about">关于本站</a>
|
|
181
|
+
</nav>
|
|
182
|
+
</div>
|
|
183
|
+
<footer class="error-footer">
|
|
184
|
+
© 2022-2026 · <a href="/">Kaleid Scoper</a>
|
|
185
|
+
</footer>
|
|
186
|
+
</body>
|
|
187
|
+
</html>
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
// ----------------------------------------------------------------
|
|
2
|
-
// ayeria-layout.styl
|
|
3
|
-
//
|
|
4
|
-
// 读取主题配置,在运行时覆盖布局静态默认值。
|
|
5
|
-
// 此文件由 Hexo 内置的 Stylus 编译器处理,不经过 Rollup 构建,
|
|
6
|
-
// 因此可以使用 hexo-config() 等 Hexo Stylus 辅助函数。
|
|
7
|
-
//
|
|
8
|
-
// 用户如需修改布局尺寸或鼠标指针,请在 _config.ayeria.yml 的
|
|
9
|
-
// layout / mouse 配置项中调整,无需编辑此文件。
|
|
10
|
-
// ----------------------------------------------------------------
|
|
11
|
-
|
|
12
|
-
$wrap-width = convert(hexo-config('layout.article_width'))
|
|
13
|
-
$aside-width = convert(hexo-config('layout.sidebar_width'))
|
|
14
|
-
|
|
15
|
-
// 自定义鼠标指针
|
|
16
|
-
if hexo-config('mouse.enable')
|
|
17
|
-
$mouse-url = convert(hexo-config('mouse.path'))
|
|
18
|
-
body
|
|
19
|
-
cursor: url($mouse-url), auto
|
|
20
|
-
|
|
21
|
-
// 侧边栏宽度(覆盖 layout.styl 中的静态默认值)
|
|
22
|
-
// 使用 0 - $var 而非 -$var:Stylus 0.62 解析器将 -$aside-width 的
|
|
23
|
-
// 前导 "-" 误判为属性名前缀(类 -webkit-),导致变量名原样输出为无效 CSS。
|
|
24
|
-
.sidebar
|
|
25
|
-
left: 0 - $aside-width
|
|
26
|
-
width: $aside-width
|
|
27
|
-
&.on
|
|
28
|
-
left: 0
|
|
29
|
-
|
|
30
|
-
// 导航切换按钮位置
|
|
31
|
-
.navbar-toggle
|
|
32
|
-
left: 1.5rem + $aside-width
|
|
33
|
-
|
|
34
|
-
// 文章宽度(桌面端)
|
|
35
|
-
@media (min-width: 768px)
|
|
36
|
-
.outer, .wrap
|
|
37
|
-
width: $wrap-width !important
|
|
38
|
-
|
|
39
|
-
// 移动端:侧边栏全屏展开,内容区跟随偏移
|
|
40
|
-
@media (max-width: 768px)
|
|
41
|
-
.sidebar
|
|
42
|
-
left: 0
|
|
43
|
-
&.on
|
|
44
|
-
left: 0 - $aside-width // 同上,0 - $var 替代取反以避免 Stylus 解析歧义
|
|
45
|
-
.content
|
|
46
|
-
transform: translateX($aside-width)
|
|
47
|
-
&.on
|
|
48
|
-
transform: translateX(0)
|
|
1
|
+
// ----------------------------------------------------------------
|
|
2
|
+
// ayeria-layout.styl
|
|
3
|
+
//
|
|
4
|
+
// 读取主题配置,在运行时覆盖布局静态默认值。
|
|
5
|
+
// 此文件由 Hexo 内置的 Stylus 编译器处理,不经过 Rollup 构建,
|
|
6
|
+
// 因此可以使用 hexo-config() 等 Hexo Stylus 辅助函数。
|
|
7
|
+
//
|
|
8
|
+
// 用户如需修改布局尺寸或鼠标指针,请在 _config.ayeria.yml 的
|
|
9
|
+
// layout / mouse 配置项中调整,无需编辑此文件。
|
|
10
|
+
// ----------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
$wrap-width = convert(hexo-config('layout.article_width'))
|
|
13
|
+
$aside-width = convert(hexo-config('layout.sidebar_width'))
|
|
14
|
+
|
|
15
|
+
// 自定义鼠标指针
|
|
16
|
+
if hexo-config('mouse.enable')
|
|
17
|
+
$mouse-url = convert(hexo-config('mouse.path'))
|
|
18
|
+
body
|
|
19
|
+
cursor: url($mouse-url), auto
|
|
20
|
+
|
|
21
|
+
// 侧边栏宽度(覆盖 layout.styl 中的静态默认值)
|
|
22
|
+
// 使用 0 - $var 而非 -$var:Stylus 0.62 解析器将 -$aside-width 的
|
|
23
|
+
// 前导 "-" 误判为属性名前缀(类 -webkit-),导致变量名原样输出为无效 CSS。
|
|
24
|
+
.sidebar
|
|
25
|
+
left: 0 - $aside-width
|
|
26
|
+
width: $aside-width
|
|
27
|
+
&.on
|
|
28
|
+
left: 0
|
|
29
|
+
|
|
30
|
+
// 导航切换按钮位置
|
|
31
|
+
.navbar-toggle
|
|
32
|
+
left: 1.5rem + $aside-width
|
|
33
|
+
|
|
34
|
+
// 文章宽度(桌面端)
|
|
35
|
+
@media (min-width: 768px)
|
|
36
|
+
.outer, .wrap
|
|
37
|
+
width: $wrap-width !important
|
|
38
|
+
|
|
39
|
+
// 移动端:侧边栏全屏展开,内容区跟随偏移
|
|
40
|
+
@media (max-width: 768px)
|
|
41
|
+
.sidebar
|
|
42
|
+
left: 0
|
|
43
|
+
&.on
|
|
44
|
+
left: 0 - $aside-width // 同上,0 - $var 替代取反以避免 Stylus 解析歧义
|
|
45
|
+
.content
|
|
46
|
+
transform: translateX($aside-width)
|
|
47
|
+
&.on
|
|
48
|
+
transform: translateX(0)
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
// 代码块复制按钮
|
|
2
|
-
if hexo-config('copy_btn') == true
|
|
3
|
-
.highlight
|
|
4
|
-
position: relative
|
|
5
|
-
|
|
6
|
-
.btn-copy
|
|
7
|
-
z-index: 1
|
|
8
|
-
display: inline-block
|
|
9
|
-
cursor: pointer
|
|
10
|
-
border: none
|
|
11
|
-
disable-user-select()
|
|
12
|
-
-webkit-appearance: none
|
|
13
|
-
font-size: 12px
|
|
14
|
-
font-weight: bold
|
|
15
|
-
padding: 3px 6px
|
|
16
|
-
>i
|
|
17
|
-
margin-right: 4px
|
|
18
|
-
font-size: 10px
|
|
19
|
-
transform: translateY(1px);
|
|
20
|
-
color: #e0e0e0
|
|
21
|
-
background: rgba(50,50,50,.9)
|
|
22
|
-
border-radius: 4px
|
|
23
|
-
position: absolute
|
|
24
|
-
top: 5px
|
|
25
|
-
right: 5px
|
|
26
|
-
opacity: 0
|
|
27
|
-
transition: all linear .2s
|
|
28
|
-
box-shadow: 0 2px 4px rgba(0,0,0,.3)
|
|
29
|
-
&:hover
|
|
30
|
-
background: rgba(70,70,70,.95)
|
|
31
|
-
color: #ffffff
|
|
32
|
-
|
|
33
|
-
.highlight:hover .btn-copy
|
|
34
|
-
opacity: 1
|
|
35
|
-
|
|
36
|
-
.article pre:hover .btn-copy
|
|
37
|
-
opacity: 1
|
|
1
|
+
// 代码块复制按钮
|
|
2
|
+
if hexo-config('copy_btn') == true
|
|
3
|
+
.highlight
|
|
4
|
+
position: relative
|
|
5
|
+
|
|
6
|
+
.btn-copy
|
|
7
|
+
z-index: 1
|
|
8
|
+
display: inline-block
|
|
9
|
+
cursor: pointer
|
|
10
|
+
border: none
|
|
11
|
+
disable-user-select()
|
|
12
|
+
-webkit-appearance: none
|
|
13
|
+
font-size: 12px
|
|
14
|
+
font-weight: bold
|
|
15
|
+
padding: 3px 6px
|
|
16
|
+
>i
|
|
17
|
+
margin-right: 4px
|
|
18
|
+
font-size: 10px
|
|
19
|
+
transform: translateY(1px);
|
|
20
|
+
color: #e0e0e0
|
|
21
|
+
background: rgba(50,50,50,.9)
|
|
22
|
+
border-radius: 4px
|
|
23
|
+
position: absolute
|
|
24
|
+
top: 5px
|
|
25
|
+
right: 5px
|
|
26
|
+
opacity: 0
|
|
27
|
+
transition: all linear .2s
|
|
28
|
+
box-shadow: 0 2px 4px rgba(0,0,0,.3)
|
|
29
|
+
&:hover
|
|
30
|
+
background: rgba(70,70,70,.95)
|
|
31
|
+
color: #ffffff
|
|
32
|
+
|
|
33
|
+
.highlight:hover .btn-copy
|
|
34
|
+
opacity: 1
|
|
35
|
+
|
|
36
|
+
.article pre:hover .btn-copy
|
|
37
|
+
opacity: 1
|
package/source/css/custom.styl
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
// custom.styl — 用户自定义样式
|
|
2
|
-
//
|
|
3
|
-
// 此文件供站点用户覆盖或扩展主题样式,加载顺序在主题内置 CSS 之后,
|
|
4
|
-
// 因此同等优先级下此处的声明生效。
|
|
5
|
-
//
|
|
6
|
-
// 示例:
|
|
7
|
-
//
|
|
8
|
-
// // 修改正文字号
|
|
9
|
-
// .article-entry
|
|
10
|
-
// font-size: 1.5rem
|
|
11
|
-
//
|
|
12
|
-
// // 隐藏页脚版权信息
|
|
13
|
-
// .footer-copyright
|
|
14
|
-
// display: none
|
|
15
|
-
//
|
|
16
|
-
// 主题内置样式请勿在此修改;如需定制主题,请向主题仓库提交 issue 或 PR:
|
|
17
|
-
// https://github.com/KaleidScoper/hexo-theme-ayeria
|
|
1
|
+
// custom.styl — 用户自定义样式
|
|
2
|
+
//
|
|
3
|
+
// 此文件供站点用户覆盖或扩展主题样式,加载顺序在主题内置 CSS 之后,
|
|
4
|
+
// 因此同等优先级下此处的声明生效。
|
|
5
|
+
//
|
|
6
|
+
// 示例:
|
|
7
|
+
//
|
|
8
|
+
// // 修改正文字号
|
|
9
|
+
// .article-entry
|
|
10
|
+
// font-size: 1.5rem
|
|
11
|
+
//
|
|
12
|
+
// // 隐藏页脚版权信息
|
|
13
|
+
// .footer-copyright
|
|
14
|
+
// display: none
|
|
15
|
+
//
|
|
16
|
+
// 主题内置样式请勿在此修改;如需定制主题,请向主题仓库提交 issue 或 PR:
|
|
17
|
+
// https://github.com/KaleidScoper/hexo-theme-ayeria
|