hexo-theme-yet-the-books-optimize 1.0.0 → 1.0.1

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/layout/index.ejs CHANGED
@@ -15,7 +15,7 @@
15
15
  <% site.categories.sort('length').map(function(category){ %>
16
16
  <% let cover = ""
17
17
  let color = "red";
18
- let icon = "";
18
+ let icon = "";
19
19
  let desc = "";
20
20
  category.posts.sort('-date').map(function(post){
21
21
  if(post.cover!==undefined && cover==""){
@@ -27,18 +27,21 @@
27
27
  if(post.icon!==undefined){
28
28
  icon = post.icon;
29
29
  };
30
- });
31
- if (icon == "Python") {
32
- desc = "日常使用笔记";
33
- };
34
- if (icon == "xctest") {
35
- desc = "使用 XCTest 测试 iOS App";
36
- };
37
- if (icon == "apple") {
38
- desc = "记录iOS开发&测试";
39
- };
40
- if (icon == "uni-app-x") {
41
- desc = "记录uni-app自动化测试系列";
30
+ });
31
+ if (icon == "Python") {
32
+ desc = "日常使用笔记";
33
+ };
34
+ if (icon == "xctest") {
35
+ desc = "使用 XCTest 测试 iOS App";
36
+ };
37
+ if (icon == "apple") {
38
+ desc = "记录iOS开发&测试";
39
+ };
40
+ if (icon == "uni-app-x") {
41
+ desc = "记录uni-app自动化测试系列";
42
+ };
43
+ if (icon == "vim") {
44
+ desc = "vi/vim简单使用系列文章";
42
45
  };
43
46
  %>
44
47
 
@@ -54,7 +57,7 @@
54
57
  <% if ( icon != '' ) { %>
55
58
  <a class="category-item" href="<%- url_for(category.path) %>">
56
59
  <div class="cover <%= icon %>">
57
- <img data-sizes="auto" style="height: 60px; width: 60px;margin-top: 70px;" src="/images/cover/<%= icon %>.png" class="lazyload">
60
+ <img data-sizes="auto" style="height: 60px; width: 60px;margin-top: 60px;" src="/images/cover/<%= icon %>.png" class="lazyload">
58
61
  <h1 class="custom-h1"><%= category.name %></h1>
59
62
  <div class="custom-desc"><%= desc %></div>
60
63
  <div class="count"><%= category.length %>篇</div>
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
- {
2
- "name": "hexo-theme-yet-the-books-optimize",
3
- "version": "1.0.0",
4
- "description": "🌙 It starts with the appearance and stays true to the words. A blog theme dedicated to those who love to think.",
5
- "keywords": [
6
- "hexo",
7
- "theme",
8
- "yet-the-books-custom"
9
- ],
10
- "author": "custom",
11
- "license": "MIT",
12
- "main": "index.js",
13
- "scripts": {
14
- "postinstall": "node ./move_config.js"
15
- }
16
- }
1
+ {
2
+ "name": "hexo-theme-yet-the-books-optimize",
3
+ "version": "1.0.1",
4
+ "description": "🌙 It starts with the appearance and stays true to the words. A blog theme dedicated to those who love to think.",
5
+ "keywords": [
6
+ "hexo",
7
+ "theme",
8
+ "yet-the-books-custom"
9
+ ],
10
+ "author": "custom",
11
+ "license": "MIT",
12
+ "main": "index.js",
13
+ "scripts": {
14
+ "postinstall": "node ./move_config.js"
15
+ }
16
+ }
@@ -189,8 +189,10 @@ a:hover {
189
189
  flex: 0 0 calc(25% - 1.5em);
190
190
  max-width: calc(25% - 1.5em);
191
191
  margin: 0;
192
+ height: 280px;;
192
193
  margin-right: 2em;
193
194
  margin-bottom: 2em;
195
+ overflow: hidden;
194
196
  }
195
197
 
196
198
  .content .category .category-item:nth-child(4n + 4) {
@@ -240,7 +242,7 @@ a:hover {
240
242
  } */
241
243
 
242
244
  .content .category .category-item .cover .custom-h1 {
243
- margin-top: 30px;
245
+ /* margin-top: 30px; */
244
246
  background-color: #f6f3ed;
245
247
  text-align: center;
246
248
  font-size: 16px;
@@ -598,8 +600,9 @@ article .catalogue {
598
600
  width: 100%;
599
601
  /* color: white; */
600
602
  font-size: 13px;
601
- position: absolute;
602
- bottom: 15px;
603
+ margin-top: 20px;
604
+ /* position: absolute; */
605
+ /* bottom: 15px; */
603
606
  text-align: center;
604
607
  }
605
608
 
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
package/cover/1.png DELETED
Binary file
package/cover/2.png DELETED
Binary file
package/cover/3.png DELETED
Binary file
package/cover/4.png DELETED
Binary file