hexo-theme-lnote 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. package/README.md +122 -122
  2. package/_config.yml +19 -19
  3. package/config/links.yml +63 -63
  4. package/config/svg.yml +33 -33
  5. package/index.d.ts +4 -0
  6. package/languages/de.yml +69 -69
  7. package/languages/en.yml +69 -69
  8. package/languages/eo.yml +69 -69
  9. package/languages/es.yml +69 -69
  10. package/languages/ja.yml +69 -69
  11. package/languages/ru.yml +69 -69
  12. package/languages/zh-CN.yml +69 -69
  13. package/languages/zh-HK.yml +69 -69
  14. package/languages/zh-TW.yml +69 -69
  15. package/layout/404.ejs +8 -8
  16. package/layout/_partials/archive-list.ejs +17 -17
  17. package/layout/_partials/category-chains.ejs +19 -19
  18. package/layout/_partials/category-list.ejs +62 -62
  19. package/layout/_partials/comments/changyan.ejs +11 -11
  20. package/layout/_partials/comments/cusdis.ejs +25 -25
  21. package/layout/_partials/comments/discuss.ejs +17 -17
  22. package/layout/_partials/comments/disqus.ejs +32 -32
  23. package/layout/_partials/comments/giscus.ejs +36 -36
  24. package/layout/_partials/comments/gitalk.ejs +19 -19
  25. package/layout/_partials/comments/livere.ejs +10 -10
  26. package/layout/_partials/comments/remark42.ejs +29 -29
  27. package/layout/_partials/comments/twikoo.ejs +25 -25
  28. package/layout/_partials/comments/utterances.ejs +27 -27
  29. package/layout/_partials/comments/valine.ejs +23 -23
  30. package/layout/_partials/comments/waline.ejs +24 -24
  31. package/layout/_partials/comments.ejs +8 -8
  32. package/layout/_partials/css.ejs +9 -9
  33. package/layout/_partials/footer/beian.ejs +33 -33
  34. package/layout/_partials/footer/statistics.ejs +39 -39
  35. package/layout/_partials/footer.ejs +7 -7
  36. package/layout/_partials/head.ejs +46 -46
  37. package/layout/_partials/header/banner.ejs +24 -24
  38. package/layout/_partials/header/navigation.ejs +56 -56
  39. package/layout/_partials/header.ejs +4 -4
  40. package/layout/_partials/markdown-plugins.ejs +24 -24
  41. package/layout/_partials/paginator.ejs +14 -14
  42. package/layout/_partials/plugins/CSR.ejs +4 -0
  43. package/layout/_partials/plugins/analytics.ejs +75 -75
  44. package/layout/_partials/plugins/anchorjs.ejs +39 -39
  45. package/layout/_partials/plugins/code-widget.ejs +7 -7
  46. package/layout/_partials/plugins/encrypt.ejs +18 -18
  47. package/layout/_partials/plugins/fancybox.ejs +11 -11
  48. package/layout/_partials/plugins/highlight.ejs +13 -13
  49. package/layout/_partials/plugins/math.ejs +51 -51
  50. package/layout/_partials/plugins/mermaid.ejs +4 -4
  51. package/layout/_partials/plugins/nprogress.ejs +7 -7
  52. package/layout/_partials/plugins/typed.ejs +20 -20
  53. package/layout/_partials/post/category-bar.ejs +18 -18
  54. package/layout/_partials/post/copyright.ejs +50 -50
  55. package/layout/_partials/post/css.ejs +3 -3
  56. package/layout/_partials/post/meta-bottom.ejs +16 -16
  57. package/layout/_partials/post/meta-top.ejs +27 -27
  58. package/layout/_partials/post/scripts.ejs +8 -7
  59. package/layout/_partials/post/sidebar-left.ejs +1 -1
  60. package/layout/_partials/post/sidebar-right.ejs +2 -2
  61. package/layout/_partials/post/toc.ejs +6 -6
  62. package/layout/_partials/scripts.ejs +10 -10
  63. package/layout/_partials/search.ejs +19 -19
  64. package/layout/about.ejs +22 -22
  65. package/layout/archive.ejs +10 -10
  66. package/layout/categories.ejs +20 -20
  67. package/layout/category.ejs +12 -12
  68. package/layout/index.ejs +61 -61
  69. package/layout/layout.ejs +60 -60
  70. package/layout/links.ejs +31 -31
  71. package/layout/page.ejs +15 -15
  72. package/layout/post.ejs +77 -77
  73. package/layout/tag.ejs +12 -12
  74. package/layout/tags.ejs +26 -26
  75. package/package.json +73 -70
  76. package/source/css/_functions/base.styl +8 -8
  77. package/source/css/_mixins/base.styl +23 -23
  78. package/source/css/_pages/_about/about.styl +32 -32
  79. package/source/css/_pages/_archive/archive.styl +32 -32
  80. package/source/css/_pages/_base/_widget/anchorjs.styl +8 -8
  81. package/source/css/_pages/_base/_widget/banner.styl +29 -29
  82. package/source/css/_pages/_base/_widget/board.styl +11 -11
  83. package/source/css/_pages/_base/_widget/code-widget.styl +37 -36
  84. package/source/css/_pages/_base/_widget/copyright.styl +91 -90
  85. package/source/css/_pages/_base/_widget/footer.styl +65 -65
  86. package/source/css/_pages/_base/_widget/footnote.styl +26 -25
  87. package/source/css/_pages/_base/_widget/header.styl +173 -173
  88. package/source/css/_pages/_base/_widget/modal.styl +100 -100
  89. package/source/css/_pages/_base/_widget/navlink.styl +15 -15
  90. package/source/css/_pages/_base/_widget/ngrogress.styl +12 -12
  91. package/source/css/_pages/_base/_widget/noscript.styl +13 -12
  92. package/source/css/_pages/_base/_widget/pagination.styl +23 -23
  93. package/source/css/_pages/_base/_widget/qrcode.styl +17 -17
  94. package/source/css/_pages/_base/_widget/scroll-btn.styl +48 -48
  95. package/source/css/_pages/_base/_widget/text.styl +20 -19
  96. package/source/css/_pages/_base/_widget/toc.styl +75 -75
  97. package/source/css/_pages/_base/base.styl +68 -68
  98. package/source/css/_pages/_base/color-schema.styl +75 -75
  99. package/source/css/_pages/_base/inline.styl +51 -51
  100. package/source/css/_pages/_base/keyframes.styl +31 -31
  101. package/source/css/_pages/_base/print.styl +39 -38
  102. package/source/css/_pages/_category/category-bar.styl +58 -58
  103. package/source/css/_pages/_category/category-chain.styl +6 -6
  104. package/source/css/_pages/_category/category-list.styl +62 -62
  105. package/source/css/_pages/_index/index.styl +75 -75
  106. package/source/css/_pages/_links/links.styl +80 -79
  107. package/source/css/_pages/_post/comment.styl +28 -27
  108. package/source/css/_pages/_post/highlight.styl +75 -75
  109. package/source/css/_pages/_post/markdown.styl +96 -96
  110. package/source/css/_pages/_post/post-page.styl +179 -179
  111. package/source/css/_pages/_post/post-plugin.styl +10 -0
  112. package/source/css/_pages/_post/post-tag.styl +43 -29
  113. package/source/css/_pages/_tag/tags.styl +9 -9
  114. package/source/css/_pages/pages.styl +8 -8
  115. package/source/css/_variables/base.styl +72 -72
  116. package/source/css/gitalk.css +546 -546
  117. package/source/css/main.styl +19 -19
  118. package/source/js/color-schema.js +279 -279
  119. package/source/js/events.js +72 -72
  120. package/source/js/img-lazyload.js +10 -10
  121. package/source/js/local-search.js +70 -70
  122. package/source/js/post/copying-code.js +34 -34
  123. package/source/js/post/enable.js +6 -6
  124. package/source/js/post/img-swipe-bf.js +47 -47
  125. package/source/js/post/img-swipe.js +81 -35
  126. package/source/js/post/mermaiding.js +9 -9
  127. package/source/js/post/play-imgs.js +58 -58
  128. package/source/js/post/toc.js +24 -24
  129. package/source/js/post/view-imgs.js +27 -27
  130. package/source/js/utils.js +245 -245
  131. package/source/xml/local-search.xml +45 -45
  132. package/templates/footer.ejs +12 -12
  133. package/templates/noun.vue +14 -17
  134. package/templates/utils/uri.ts +12 -0
  135. package/scripts/index.js +0 -1
  136. package/source/css/_pages/_tag/tag.styl +0 -9
package/layout/layout.ejs CHANGED
@@ -1,60 +1,60 @@
1
- <%
2
- var banner_img_height = 100
3
- var colorSchema = theme.dark_mode
4
- %>
5
-
6
- <!DOCTYPE html>
7
- <html lang="<%= config.language %>" <%= colorSchema ? `data-default-color-scheme=${colorSchema}` : '' %>>
8
-
9
- <%- partial('_partials/head.ejs') %>
10
-
11
- <body>
12
- <%- inject_point('bodyBegin') %>
13
-
14
- <header>
15
- <%- inject_point('header') %>
16
- </header>
17
-
18
- <main>
19
- <% if(is_post() || page.layout === '404') { %>
20
- <%- body %>
21
- <% } else { %>
22
- <div class="container nopadding-x-md">
23
- <div id="board"
24
- <%- banner_img_height >= 100 ? 'style="margin-top: 0"' : '' %>>
25
- <% if(page.layout === 'about') { %>
26
- <div class="about-avatar">
27
- <img src="<%= url_for(theme.avatar) %>" alt="avatar">
28
- </div>
29
- <% } %>
30
- <div class="container">
31
- <div class="row">
32
- <div class="col-12 col-md-10 m-auto">
33
- <%- body %>
34
- </div>
35
- </div>
36
- </div>
37
- </div>
38
- </div>
39
- <% } %>
40
-
41
- <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
42
- <i class="iconfont icon-arrowup" aria-hidden="true"></i>
43
- </a>
44
-
45
- <%- partial('_partials/search.ejs') %>
46
-
47
- </main>
48
-
49
- <%- write_info('footer') %>
50
- <!-- Scripts -->
51
- <%- partial('_partials/scripts.ejs') %>
52
-
53
- <%- my_post_js(page) %>
54
- <%- inject_point('bodyEnd') %>
55
-
56
- <noscript>
57
- <div class="noscript-warning"><%- __('noscript_warning') %></div>
58
- </noscript>
59
- </body>
60
- </html>
1
+ <%
2
+ var banner_img_height = 100
3
+ var colorSchema = theme.dark_mode
4
+ %>
5
+
6
+ <!DOCTYPE html>
7
+ <html lang="<%= config.language %>" <%= colorSchema ? `data-default-color-scheme=${colorSchema}` : '' %>>
8
+
9
+ <%- partial('_partials/head.ejs') %>
10
+
11
+ <body>
12
+ <%- inject_point('bodyBegin') %>
13
+
14
+ <header>
15
+ <%- inject_point('header') %>
16
+ </header>
17
+
18
+ <main>
19
+ <% if(is_post() || page.layout === '404') { %>
20
+ <%- body %>
21
+ <% } else { %>
22
+ <div class="container nopadding-x-md">
23
+ <div id="board"
24
+ <%- banner_img_height >= 100 ? 'style="margin-top: 0"' : '' %>>
25
+ <% if(page.layout === 'about') { %>
26
+ <div class="about-avatar">
27
+ <img src="<%= url_for(theme.avatar) %>" alt="avatar">
28
+ </div>
29
+ <% } %>
30
+ <div class="container">
31
+ <div class="row">
32
+ <div class="col-12 col-md-10 m-auto">
33
+ <%- body %>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ <% } %>
40
+
41
+ <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
42
+ <i class="iconfont icon-arrowup" aria-hidden="true"></i>
43
+ </a>
44
+
45
+ <%- partial('_partials/search.ejs') %>
46
+
47
+ </main>
48
+
49
+ <%- write_info('footer') %>
50
+ <!-- Scripts -->
51
+ <%- partial('_partials/scripts.ejs') %>
52
+
53
+ <%- my_post_js(page) %>
54
+ <%- inject_point('bodyEnd') %>
55
+
56
+ <noscript>
57
+ <div class="noscript-warning"><%- __('noscript_warning') %></div>
58
+ </noscript>
59
+ </body>
60
+ </html>
package/layout/links.ejs CHANGED
@@ -1,31 +1,31 @@
1
- <%
2
- page.layout = "links"
3
- page.title = __('links.title')
4
- page.subtitle = __('links.subtitle')
5
- page.banner_img = theme.banner_img
6
- page.banner_img_height = 60
7
- page.banner_mask_alpha = 0.3
8
- page.comment = 'disqus'
9
- %>
10
-
11
- <div class="row links">
12
- <% for(const each of theme.links || []) { %>
13
- <% if (!each.title || !each.link) continue %>
14
- <div class="card col-lg-4 col-md-6 col-sm-12">
15
- <a href="<%= url_for(each.link) %>" class="card-body hover-with-bg" target="_blank" rel="noopener">
16
- <div class="card-content">
17
- <% if (each.avatar || each.image) { %>
18
- <div class="link-avatar my-auto">
19
- <img src="<%= url_for(each.avatar || each.image) %>" alt="<%= each.title %>"
20
- onerror="this.onerror=null; this.src=this.srcset='<%= url_for(theme.links.onerror_avatar) %>'"/>
21
- </div>
22
- <% } %>
23
- <div class="link-text">
24
- <div class="link-title"><%- each.title %></div>
25
- <div class="link-intro"><%- each.intro || '' %></div>
26
- </div>
27
- </div>
28
- </a>
29
- </div>
30
- <% } %>
31
- </div>
1
+ <%
2
+ page.layout = "links"
3
+ page.title = __('links.title')
4
+ page.subtitle = __('links.subtitle')
5
+ page.banner_img = theme.banner_img
6
+ page.banner_img_height = 60
7
+ page.banner_mask_alpha = 0.3
8
+ page.comment = 'disqus'
9
+ %>
10
+
11
+ <div class="row links">
12
+ <% for(const each of theme.links || []) { %>
13
+ <% if (!each.title || !each.link) continue %>
14
+ <div class="card col-lg-4 col-md-6 col-sm-12">
15
+ <a href="<%= url_for(each.link) %>" class="card-body hover-with-bg" target="_blank" rel="noopener">
16
+ <div class="card-content">
17
+ <% if (each.avatar || each.image) { %>
18
+ <div class="link-avatar my-auto">
19
+ <img src="<%= url_for(each.avatar || each.image) %>" alt="<%= each.title %>"
20
+ onerror="this.onerror=null; this.src=this.srcset='<%= url_for(theme.links.onerror_avatar) %>'"/>
21
+ </div>
22
+ <% } %>
23
+ <div class="link-text">
24
+ <div class="link-title"><%- each.title %></div>
25
+ <div class="link-intro"><%- each.intro || '' %></div>
26
+ </div>
27
+ </div>
28
+ </a>
29
+ </div>
30
+ <% } %>
31
+ </div>
package/layout/page.ejs CHANGED
@@ -1,15 +1,15 @@
1
- <%
2
- var layout = page.layout
3
- page.title = page.title || __(`${ layout }.title`)
4
- page.subtitle = page.subtitle || page.title || __(`${ layout }.subtitle`)
5
- page.banner_img = page.banner_img || theme.banner_img
6
- page.banner_img_height = 60
7
- page.banner_mask_alpha = 0.3
8
- %>
9
-
10
- <article class="page-content">
11
- <%- page.content %>
12
-
13
- <%- inject_point('pageComments') %>
14
- </article>
15
-
1
+ <%
2
+ var layout = page.layout
3
+ page.title = page.title || __(`${ layout }.title`)
4
+ page.subtitle = page.subtitle || page.title || __(`${ layout }.subtitle`)
5
+ page.banner_img = page.banner_img || theme.banner_img
6
+ page.banner_img_height = 60
7
+ page.banner_mask_alpha = 0.3
8
+ %>
9
+
10
+ <article class="page-content">
11
+ <%- page.content %>
12
+
13
+ <%- inject_point('pageComments') %>
14
+ </article>
15
+
package/layout/post.ejs CHANGED
@@ -1,77 +1,77 @@
1
- <%
2
- page.banner_img = page.banner_img || theme.banner_img
3
- page.banner_img_height = 60
4
- page.banner_mask_alpha = 0.3
5
- %>
6
-
7
- <div class="container-fluid nopadding-x">
8
- <div class="row nomargin-x">
9
- <div class="side-col d-none d-lg-block col-lg-2">
10
- <%- inject_point('postLeft') %>
11
- </div>
12
-
13
- <div class="col-lg-8 nopadding-x-md">
14
- <div class="container nopadding-x-md" id="board-ctn">
15
- <div id="board">
16
- <article class="post-content mx-auto">
17
- <h1 id="seo-header"><%= page.subtitle || page.title %></h1>
18
- <p class="alert alert-info">
19
- <%- __('post.updated', date(page.updated, 'LLLL')) %>
20
- </p>
21
- <% if (page.encrypt === true) { %>
22
- <%- inject_point('postMarkdownBegin') %>
23
- <%- page.content %>
24
- <%- partial('_partials/plugins/encrypt') %>
25
- <%- inject_point('postMarkdownEnd') %>
26
- <% } else { %>
27
- <div class="markdown-body">
28
- <%- my_post_main('postMainBegin', page) %>
29
- <%- inject_point('postMarkdownBegin') %>
30
- <%- page.content %>
31
- <%- inject_point('postMarkdownEnd') %>
32
- <%- my_post_main('postMainEnd', page) %>
33
- </div>
34
- <% } %>
35
- <hr/>
36
- <div>
37
- <%- inject_point('postMetaBottom') %>
38
-
39
- <%- inject_point('postCopyright') %>
40
-
41
- <% if (!page.hide) { %>
42
- <div class="post-prevnext my-3">
43
- <article class="post-prev col-6">
44
- <% const prev = prev_post(page) %>
45
- <% if (prev) { %>
46
- <a href="<%= url_for(prev.path) %>" title="<%= prev.title %>">
47
- <i class="iconfont icon-arrowleft"></i>
48
- <span class="hidden-mobile"><%= prev.title %></span>
49
- <span class="visible-mobile"><%- __('post.prev_post') %></span>
50
- </a>
51
- <% } %>
52
- </article>
53
- <article class="post-next col-6">
54
- <% const next = next_post(page) %>
55
- <% if (next) { %>
56
- <a href="<%= url_for(next.path) %>" title="<%= next.title %>">
57
- <span class="hidden-mobile"><%= next.title %></span>
58
- <span class="visible-mobile"><%- __('post.next_post') %></span>
59
- <i class="iconfont icon-arrowright"></i>
60
- </a>
61
- <% } %>
62
- </article>
63
- </div>
64
- <% } %>
65
- </div>
66
-
67
- <%- inject_point('postComments') %>
68
- </article>
69
- </div>
70
- </div>
71
- </div>
72
-
73
- <div class="side-col d-none d-lg-block col-lg-2">
74
- <%- inject_point('postRight') %>
75
- </div>
76
- </div>
77
- </div>
1
+ <%
2
+ page.banner_img = page.banner_img || theme.banner_img
3
+ page.banner_img_height = 60
4
+ page.banner_mask_alpha = 0.3
5
+ %>
6
+
7
+ <div class="container-fluid nopadding-x">
8
+ <div class="row nomargin-x">
9
+ <div class="side-col d-none d-lg-block col-lg-2">
10
+ <%- inject_point('postLeft') %>
11
+ </div>
12
+
13
+ <div class="col-lg-8 nopadding-x-md">
14
+ <div class="container nopadding-x-md" id="board-ctn">
15
+ <div id="board">
16
+ <article class="post-content mx-auto">
17
+ <!-- <h1 id="seo-header"><%#= page.subtitle || page.title %></h1> -->
18
+ <p class="alert alert-info">
19
+ <%- __('post.updated', date(page.updated, 'LLLL')) %>
20
+ </p>
21
+ <% if (page.encrypt === true) { %>
22
+ <%- inject_point('postMarkdownBegin') %>
23
+ <%- page.content %>
24
+ <%- partial('_partials/plugins/encrypt') %>
25
+ <%- inject_point('postMarkdownEnd') %>
26
+ <% } else { %>
27
+ <div class="markdown-body">
28
+ <%- my_post_main('postMainBegin', page) %>
29
+ <%- inject_point('postMarkdownBegin') %>
30
+ <%- page.content %>
31
+ <%- inject_point('postMarkdownEnd') %>
32
+ <%- my_post_main('postMainEnd', page) %>
33
+ </div>
34
+ <% } %>
35
+ <hr/>
36
+ <div>
37
+ <%- inject_point('postMetaBottom') %>
38
+
39
+ <%- inject_point('postCopyright') %>
40
+
41
+ <% if (!page.hide) { %>
42
+ <div class="post-prevnext my-3">
43
+ <article class="post-prev col-6">
44
+ <% const prev = prev_post(page) %>
45
+ <% if (prev) { %>
46
+ <a href="<%= url_for(prev.path) %>" title="<%= prev.title %>">
47
+ <i class="iconfont icon-arrowleft"></i>
48
+ <span class="hidden-mobile"><%= prev.title %></span>
49
+ <span class="visible-mobile"><%- __('post.prev_post') %></span>
50
+ </a>
51
+ <% } %>
52
+ </article>
53
+ <article class="post-next col-6">
54
+ <% const next = next_post(page) %>
55
+ <% if (next) { %>
56
+ <a href="<%= url_for(next.path) %>" title="<%= next.title %>">
57
+ <span class="hidden-mobile"><%= next.title %></span>
58
+ <span class="visible-mobile"><%- __('post.next_post') %></span>
59
+ <i class="iconfont icon-arrowright"></i>
60
+ </a>
61
+ <% } %>
62
+ </article>
63
+ </div>
64
+ <% } %>
65
+ </div>
66
+
67
+ <%- inject_point('postComments') %>
68
+ </article>
69
+ </div>
70
+ </div>
71
+ </div>
72
+
73
+ <div class="side-col d-none d-lg-block col-lg-2">
74
+ <%- inject_point('postRight') %>
75
+ </div>
76
+ </div>
77
+ </div>
package/layout/tag.ejs CHANGED
@@ -1,12 +1,12 @@
1
- <%
2
- page.layout = "tag"
3
- page.title = [__('tag.title'), page.tag].join(" - ")
4
- page.subtitle = [__('tag.subtitle'), page.tag].join(" - ")
5
- page.banner_img = theme.banner_img
6
- page.banner_img_height = 80
7
- page.banner_mask_alpha = 0.3
8
-
9
- var tag = site.tags.find({name: page.tag}).filter(tag => tag.length).data[0]
10
- %>
11
-
12
- <%- partial('_partials/archive-list.ejs', { params: { key: page.layout, postTotal: tag ? tag.posts.length : 0 } }) %>
1
+ <%
2
+ page.layout = "tag"
3
+ page.title = [__('tag.title'), page.tag].join(" - ")
4
+ page.subtitle = [__('tag.subtitle'), page.tag].join(" - ")
5
+ page.banner_img = theme.banner_img
6
+ page.banner_img_height = 80
7
+ page.banner_mask_alpha = 0.3
8
+
9
+ var tag = site.tags.find({name: page.tag}).filter(tag => tag.length).data[0]
10
+ %>
11
+
12
+ <%- partial('_partials/archive-list.ejs', { params: { key: page.layout, postTotal: tag ? tag.posts.length : 0 } }) %>
package/layout/tags.ejs CHANGED
@@ -1,26 +1,26 @@
1
- <%
2
- page.layout = "tags"
3
- page.title = __('tag.title')
4
- page.subtitle = __('tag.subtitle')
5
- page.banner_img = theme.banner_img
6
- page.banner_img_height = 80
7
- page.banner_mask_alpha = 0.3
8
-
9
- var min_font = 18
10
- var max_font = 42
11
- var unit = 'px'
12
- var start_color = '#BBBBEE'
13
- var end_color = '#337ab7'
14
- %>
15
-
16
- <div class="text-center tagcloud">
17
- <%- tagcloud({
18
- min_font: min_font,
19
- max_font: max_font,
20
- amount: 999,
21
- unit: unit,
22
- color: true,
23
- start_color,
24
- end_color
25
- }) %>
26
- </div>
1
+ <%
2
+ page.layout = "tags"
3
+ page.title = __('tag.title')
4
+ page.subtitle = __('tag.subtitle')
5
+ page.banner_img = theme.banner_img
6
+ page.banner_img_height = 80
7
+ page.banner_mask_alpha = 0.3
8
+
9
+ var min_font = 18
10
+ var max_font = 42
11
+ var unit = 'px'
12
+ var start_color = '#BBBBEE'
13
+ var end_color = '#337ab7'
14
+ %>
15
+
16
+ <div class="text-center tagcloud">
17
+ <%- tagcloud({
18
+ min_font: min_font,
19
+ max_font: max_font,
20
+ amount: 999,
21
+ unit: unit,
22
+ color: true,
23
+ start_color,
24
+ end_color
25
+ }) %>
26
+ </div>
package/package.json CHANGED
@@ -1,70 +1,73 @@
1
- {
2
- "name": "hexo-theme-lnote",
3
- "version": "1.2.4",
4
- "description": "An elegant Material-Design theme for Hexo.",
5
- "main": "package.json",
6
- "files": [
7
- "languages",
8
- "layout",
9
- "scripts/*.js",
10
- "config",
11
- "source",
12
- "_config.yml",
13
- "templates"
14
- ],
15
- "scripts": {
16
- "test": "jest --coverage --silent --watchAll=false",
17
- "unit": "jest --watchAll",
18
- "unit-spec": "jest --watchAll --verbose ./src/utils/__test__/vueTsr.test.ts",
19
- "dev": "npx webpack --watch --config webpack.dev.js",
20
- "build": "npx webpack --config webpack.config.js"
21
- },
22
- "keywords": [
23
- "hexo",
24
- "theme",
25
- "lnote",
26
- "material"
27
- ],
28
- "author": "littlefatcat163",
29
- "engines": {
30
- "node": ">=18.0.0"
31
- },
32
- "peerDependencies": {
33
- "nunjucks": "^3.0.0"
34
- },
35
- "devDependencies": {
36
- "@types/bluebird": "^3.5.41",
37
- "@types/bunyan": "^1.8.10",
38
- "@types/connect": "^3.4.37",
39
- "@types/css": "^0.0.35",
40
- "@types/hexo-util": "^0.6.7",
41
- "@types/jest": "^29.5.6",
42
- "@types/minimist": "^1.2.4",
43
- "@types/node": "^20.8.9",
44
- "@types/nunjucks": "^3.2.6",
45
- "@types/underscore": "^1.11.12",
46
- "clean-webpack-plugin": "^4.0.0",
47
- "compare-versions": "^6.1.0",
48
- "css": "^3.0.0",
49
- "javascript-obfuscator": "^4.1.0",
50
- "jest": "^29.7.0",
51
- "jest-transform-yaml": "^1.1.2",
52
- "lnote-esm": "^1.0.2",
53
- "moment": "^2.29.4",
54
- "ts-jest": "^29.1.1",
55
- "ts-loader": "^9.5.0",
56
- "ts-node": "^10.9.1",
57
- "tslib": "^2.6.2",
58
- "typescript": "^5.2.2",
59
- "webpack": "^5.89.0",
60
- "webpack-cli": "^5.1.4",
61
- "webpack-merge": "^5.10.0",
62
- "webpack-obfuscator": "^3.5.1",
63
- "yaml": "^2.3.3"
64
- },
65
- "dependencies": {
66
- "lodash": "^4.17.21",
67
- "systeminformation": "^5.21.15",
68
- "vue": "^3.3.7"
69
- }
70
- }
1
+ {
2
+ "name": "hexo-theme-lnote",
3
+ "version": "1.2.5",
4
+ "description": "An elegant Material-Design theme for Hexo.",
5
+ "main": "package.json",
6
+ "types": "index.d.ts",
7
+ "files": [
8
+ "languages",
9
+ "layout",
10
+ "scripts/*.js",
11
+ "config",
12
+ "source",
13
+ "_config.yml",
14
+ "templates",
15
+ "index.d.ts"
16
+ ],
17
+ "scripts": {
18
+ "test": "jest --coverage --silent --watchAll=false",
19
+ "unit": "jest --watchAll",
20
+ "unit-spec": "jest --watchAll --verbose ./src/utils/__test__/htmlEl.test.ts",
21
+ "dev": "npx webpack --watch --config webpack.dev.js",
22
+ "build": "npx webpack --config webpack.config.js"
23
+ },
24
+ "keywords": [
25
+ "hexo",
26
+ "theme",
27
+ "lnote",
28
+ "material"
29
+ ],
30
+ "author": "littlefatcat163",
31
+ "engines": {
32
+ "node": ">=18.0.0"
33
+ },
34
+ "peerDependencies": {
35
+ "nunjucks": "^3.0.0"
36
+ },
37
+ "devDependencies": {
38
+ "@types/bluebird": "^3.5.41",
39
+ "@types/bunyan": "^1.8.10",
40
+ "@types/connect": "^3.4.37",
41
+ "@types/css": "^0.0.35",
42
+ "@types/hexo-util": "^0.6.7",
43
+ "@types/jest": "^29.5.6",
44
+ "@types/minimist": "^1.2.4",
45
+ "@types/node": "^20.8.9",
46
+ "@types/nunjucks": "^3.2.6",
47
+ "@types/underscore": "^1.11.12",
48
+ "clean-webpack-plugin": "^4.0.0",
49
+ "compare-versions": "^6.1.0",
50
+ "css": "^3.0.0",
51
+ "hexo": "^7.0.0",
52
+ "javascript-obfuscator": "^4.1.0",
53
+ "jest": "^29.7.0",
54
+ "jest-transform-yaml": "^1.1.2",
55
+ "lnote-esm": "^1.0.2",
56
+ "moment": "^2.29.4",
57
+ "ts-jest": "^29.1.1",
58
+ "ts-loader": "^9.5.0",
59
+ "ts-node": "^10.9.1",
60
+ "tslib": "^2.6.2",
61
+ "typescript": "^5.2.2",
62
+ "webpack": "^5.89.0",
63
+ "webpack-cli": "^5.1.4",
64
+ "webpack-merge": "^5.10.0",
65
+ "webpack-obfuscator": "^3.5.1",
66
+ "yaml": "^2.3.3"
67
+ },
68
+ "dependencies": {
69
+ "lodash": "^4.17.21",
70
+ "systeminformation": "^5.21.15",
71
+ "vue": "^3.3.7"
72
+ }
73
+ }
@@ -1,8 +1,8 @@
1
- theme-config(config, predef)
2
- unquote(hexo-config(config) ? hexo-config(config):predef)
3
-
4
- theme-config-unit(config, predef, unit)
5
- unit(hexo-config(config) ? hexo-config(config):predef, unit)
6
-
7
- theme-config-origin(config, predef)
8
- (hexo-config(config) ? hexo-config(config):predef)
1
+ theme-config(config, predef)
2
+ unquote(hexo-config(config) ? hexo-config(config):predef)
3
+
4
+ theme-config-unit(config, predef, unit)
5
+ unit(hexo-config(config) ? hexo-config(config):predef, unit)
6
+
7
+ theme-config-origin(config, predef)
8
+ (hexo-config(config) ? hexo-config(config):predef)