hexo-theme-linen 1.0.47 → 1.0.48

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-linen",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "A clean Hexo theme",
5
5
  "main": "index.js",
6
6
  "homepage": "https://github.com/lynanbreeze/hexo-theme-linen",
@@ -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.replace(/\$?no-lazy/, "");
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;
@@ -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 {