hexo-theme-linen 1.0.47 → 1.0.49
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/package.json
CHANGED
|
@@ -311,7 +311,7 @@ function lazyProcess(htmlContent) {
|
|
|
311
311
|
return htmlContent
|
|
312
312
|
.replace(/<img([\s\S]*?)src="(.*?)"([\s\S]*?)(>|<\/img>)/gi, function (str, p1, src, attrStr) {
|
|
313
313
|
if (/no-lazy/gi.test(str)) {
|
|
314
|
-
return str
|
|
314
|
+
return str;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
const formatedAttributes = formatAttributes(str, src, imgs, language);
|
|
@@ -495,6 +495,7 @@ module.exports.processCovers = function (str, data) {
|
|
|
495
495
|
}></span></span></div>`;
|
|
496
496
|
}
|
|
497
497
|
);
|
|
498
|
+
str = str.replace(/\s+\$?no-lazy\b/gi, "");
|
|
498
499
|
} catch (error) {
|
|
499
500
|
console.log(error);
|
|
500
501
|
return str;
|
|
@@ -8,12 +8,36 @@
|
|
|
8
8
|
@font-face {
|
|
9
9
|
font-family: "source han serif cn";
|
|
10
10
|
src:
|
|
11
|
-
local("
|
|
11
|
+
local("STSongti-SC-Regular"),
|
|
12
|
+
local("Songti SC Regular"),
|
|
13
|
+
local("STSong"),
|
|
14
|
+
local("SimSun"),
|
|
15
|
+
local("宋体"),
|
|
16
|
+
local("NSimSun"),
|
|
12
17
|
local("Source Han Serif SC"),
|
|
13
|
-
local("
|
|
18
|
+
local("Source Han Serif CN"),
|
|
14
19
|
url("../fonts/SourceHanSerifSC-Regular.woff2?v=#{$font-version}") format("woff2");
|
|
20
|
+
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
font-style: normal;
|
|
15
23
|
font-display: swap;
|
|
16
|
-
unicode-range: U+4E00-9FFF;
|
|
24
|
+
unicode-range: U+4E00-9FFF, U+3000-303F, U+FF00-FFEF;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@font-face {
|
|
28
|
+
font-family: "source han serif cn";
|
|
29
|
+
src:
|
|
30
|
+
local("STSongti-SC-Bold"),
|
|
31
|
+
local("Songti SC Bold"),
|
|
32
|
+
local("STSong"),
|
|
33
|
+
local("SimSun"),
|
|
34
|
+
local("Source Han Serif SC Bold"),
|
|
35
|
+
url("../fonts/SourceHanSerifSC-Regular.woff2?v=#{$font-version}") format("woff2");
|
|
36
|
+
|
|
37
|
+
font-weight: 700;
|
|
38
|
+
font-style: normal;
|
|
39
|
+
font-display: swap;
|
|
40
|
+
unicode-range: U+4E00-9FFF, U+3000-303F, U+FF00-FFEF;
|
|
17
41
|
}
|
|
18
42
|
@font-face {
|
|
19
43
|
font-family: "LXGWWenKai";
|
|
@@ -599,10 +623,22 @@ body {
|
|
|
599
623
|
@include defaultFont();
|
|
600
624
|
}
|
|
601
625
|
#page-content {
|
|
626
|
+
@include sourceSerifFont;
|
|
627
|
+
font-size: 17px;
|
|
628
|
+
line-height: 1.8;
|
|
629
|
+
color: $darkText;
|
|
630
|
+
-webkit-font-smoothing: subpixel-antialiased;
|
|
602
631
|
text-autospace: normal;
|
|
632
|
+
|
|
603
633
|
> :last-child {
|
|
604
634
|
margin-bottom: 0;
|
|
605
635
|
}
|
|
636
|
+
|
|
637
|
+
strong {
|
|
638
|
+
font-family: inherit;
|
|
639
|
+
font-weight: 700;
|
|
640
|
+
color: #000;
|
|
641
|
+
}
|
|
606
642
|
}
|
|
607
643
|
.post-meta {
|
|
608
644
|
@include defaultFont;
|
|
@@ -164,6 +164,38 @@
|
|
|
164
164
|
backdrop-filter: blur(10px);
|
|
165
165
|
display: block;
|
|
166
166
|
}
|
|
167
|
+
|
|
168
|
+
.lazyload-wrap,
|
|
169
|
+
.post-list-cover-lazy {
|
|
170
|
+
position: absolute;
|
|
171
|
+
inset: 0;
|
|
172
|
+
width: 100%;
|
|
173
|
+
height: 100%;
|
|
174
|
+
|
|
175
|
+
.placeholder {
|
|
176
|
+
width: 100%;
|
|
177
|
+
height: 100%;
|
|
178
|
+
padding-bottom: 0 !important;
|
|
179
|
+
background-size: cover;
|
|
180
|
+
background-position: center;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.inner-wrap {
|
|
184
|
+
width: 100%;
|
|
185
|
+
height: 100%;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
img {
|
|
189
|
+
position: absolute;
|
|
190
|
+
top: 0;
|
|
191
|
+
left: 0;
|
|
192
|
+
width: 100%;
|
|
193
|
+
height: 100%;
|
|
194
|
+
object-fit: contain;
|
|
195
|
+
backdrop-filter: blur(10px);
|
|
196
|
+
display: block;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
167
199
|
}
|
|
168
200
|
|
|
169
201
|
.link-content {
|
|
@@ -74,7 +74,16 @@ $postWidth: max(min(1192px, 68vw), 960px);
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
@mixin sourceSerifFont {
|
|
77
|
-
font-family:
|
|
77
|
+
font-family:
|
|
78
|
+
"source han serif cn",
|
|
79
|
+
"STSongti-SC-Regular",
|
|
80
|
+
"Songti SC",
|
|
81
|
+
"SimSun",
|
|
82
|
+
-apple-system,
|
|
83
|
+
BlinkMacSystemFont,
|
|
84
|
+
"Helvetica Neue",
|
|
85
|
+
Arial,
|
|
86
|
+
sans-serif;
|
|
78
87
|
}
|
|
79
88
|
|
|
80
89
|
@mixin subTitle {
|