hexo-theme-lnote 1.2.4 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +122 -122
- package/_config.yml +19 -19
- package/config/links.yml +63 -63
- package/config/svg.yml +33 -33
- package/index.d.ts +4 -0
- package/languages/de.yml +69 -69
- package/languages/en.yml +73 -69
- package/languages/eo.yml +69 -69
- package/languages/es.yml +69 -69
- package/languages/ja.yml +69 -69
- package/languages/ru.yml +69 -69
- package/languages/zh-CN.yml +73 -69
- package/languages/zh-HK.yml +73 -69
- package/languages/zh-TW.yml +73 -69
- package/layout/404.ejs +8 -8
- package/layout/_partials/archive-list.ejs +17 -17
- package/layout/_partials/category-chains.ejs +19 -19
- package/layout/_partials/category-list.ejs +62 -62
- package/layout/_partials/comments/changyan.ejs +11 -11
- package/layout/_partials/comments/cusdis.ejs +25 -25
- package/layout/_partials/comments/discuss.ejs +17 -17
- package/layout/_partials/comments/disqus.ejs +32 -32
- package/layout/_partials/comments/giscus.ejs +36 -36
- package/layout/_partials/comments/gitalk.ejs +19 -19
- package/layout/_partials/comments/livere.ejs +10 -10
- package/layout/_partials/comments/remark42.ejs +29 -29
- package/layout/_partials/comments/twikoo.ejs +25 -25
- package/layout/_partials/comments/utterances.ejs +27 -27
- package/layout/_partials/comments/valine.ejs +23 -23
- package/layout/_partials/comments/waline.ejs +24 -24
- package/layout/_partials/comments.ejs +8 -8
- package/layout/_partials/css.ejs +9 -9
- package/layout/_partials/footer/beian.ejs +33 -33
- package/layout/_partials/footer/statistics.ejs +39 -39
- package/layout/_partials/footer.ejs +7 -7
- package/layout/_partials/head.ejs +46 -46
- package/layout/_partials/header/banner.ejs +24 -24
- package/layout/_partials/header/navigation.ejs +56 -56
- package/layout/_partials/header.ejs +4 -4
- package/layout/_partials/markdown-plugins.ejs +24 -24
- package/layout/_partials/paginator.ejs +14 -14
- package/layout/_partials/plugins/CSR.ejs +4 -0
- package/layout/_partials/plugins/analytics.ejs +75 -75
- package/layout/_partials/plugins/anchorjs.ejs +39 -39
- package/layout/_partials/plugins/code-widget.ejs +7 -7
- package/layout/_partials/plugins/encrypt.ejs +18 -18
- package/layout/_partials/plugins/fancybox.ejs +11 -11
- package/layout/_partials/plugins/highlight.ejs +13 -13
- package/layout/_partials/plugins/math.ejs +51 -51
- package/layout/_partials/plugins/mermaid.ejs +4 -4
- package/layout/_partials/plugins/nprogress.ejs +7 -7
- package/layout/_partials/plugins/typed.ejs +20 -20
- package/layout/_partials/post/category-bar.ejs +18 -18
- package/layout/_partials/post/copyright.ejs +50 -50
- package/layout/_partials/post/css.ejs +3 -3
- package/layout/_partials/post/meta-bottom.ejs +16 -16
- package/layout/_partials/post/meta-top.ejs +27 -27
- package/layout/_partials/post/scripts.ejs +8 -7
- package/layout/_partials/post/sidebar-left.ejs +1 -1
- package/layout/_partials/post/sidebar-right.ejs +2 -2
- package/layout/_partials/post/toc.ejs +6 -6
- package/layout/_partials/scripts.ejs +10 -10
- package/layout/_partials/search.ejs +19 -19
- package/layout/about.ejs +22 -22
- package/layout/archive.ejs +10 -10
- package/layout/categories.ejs +20 -20
- package/layout/category.ejs +12 -12
- package/layout/index.ejs +61 -61
- package/layout/layout.ejs +60 -60
- package/layout/links.ejs +31 -31
- package/layout/page.ejs +15 -15
- package/layout/post.ejs +77 -77
- package/layout/tag.ejs +12 -12
- package/layout/tags.ejs +26 -26
- package/package.json +74 -70
- package/scripts/index.js +1 -1
- package/source/css/_functions/base.styl +8 -8
- package/source/css/_mixins/base.styl +23 -23
- package/source/css/_pages/_about/about.styl +32 -32
- package/source/css/_pages/_archive/archive.styl +32 -32
- package/source/css/_pages/_base/_widget/anchorjs.styl +8 -8
- package/source/css/_pages/_base/_widget/banner.styl +29 -29
- package/source/css/_pages/_base/_widget/board.styl +11 -11
- package/source/css/_pages/_base/_widget/code-widget.styl +37 -36
- package/source/css/_pages/_base/_widget/copyright.styl +91 -90
- package/source/css/_pages/_base/_widget/footer.styl +65 -65
- package/source/css/_pages/_base/_widget/footnote.styl +26 -25
- package/source/css/_pages/_base/_widget/header.styl +173 -173
- package/source/css/_pages/_base/_widget/modal.styl +100 -100
- package/source/css/_pages/_base/_widget/navlink.styl +15 -15
- package/source/css/_pages/_base/_widget/ngrogress.styl +12 -12
- package/source/css/_pages/_base/_widget/noscript.styl +13 -12
- package/source/css/_pages/_base/_widget/pagination.styl +23 -23
- package/source/css/_pages/_base/_widget/qrcode.styl +17 -17
- package/source/css/_pages/_base/_widget/scroll-btn.styl +48 -48
- package/source/css/_pages/_base/_widget/text.styl +20 -19
- package/source/css/_pages/_base/_widget/toc.styl +75 -75
- package/source/css/_pages/_base/base.styl +67 -68
- package/source/css/_pages/_base/color-schema.styl +79 -75
- package/source/css/_pages/_base/inline.styl +51 -51
- package/source/css/_pages/_base/keyframes.styl +31 -31
- package/source/css/_pages/_base/print.styl +39 -38
- package/source/css/_pages/_category/category-bar.styl +58 -58
- package/source/css/_pages/_category/category-chain.styl +6 -6
- package/source/css/_pages/_category/category-list.styl +62 -62
- package/source/css/_pages/_index/index.styl +75 -75
- package/source/css/_pages/_links/links.styl +80 -79
- package/source/css/_pages/_post/comment.styl +28 -27
- package/source/css/_pages/_post/highlight.styl +76 -75
- package/source/css/_pages/_post/markdown.styl +96 -96
- package/source/css/_pages/_post/post-page.styl +179 -179
- package/source/css/_pages/_post/post-plugin.styl +10 -0
- package/source/css/_pages/_post/post-tag.styl +75 -29
- package/source/css/_pages/_tag/tags.styl +9 -9
- package/source/css/_pages/pages.styl +8 -8
- package/source/css/_variables/base.styl +72 -72
- package/source/css/gitalk.css +546 -546
- package/source/css/main.styl +19 -19
- package/source/img/chat/responder.jpg +0 -0
- package/source/img/chat/sender.jpg +0 -0
- package/source/img/default8.jpg +0 -0
- package/source/js/color-schema.js +279 -279
- package/source/js/events.js +72 -72
- package/source/js/img-lazyload.js +10 -10
- package/source/js/local-search.js +70 -70
- package/source/js/post/copying-code.js +34 -34
- package/source/js/post/enable.js +6 -6
- package/source/js/post/img-swipe-bf.js +47 -47
- package/source/js/post/img-swipe.js +84 -35
- package/source/js/post/mermaiding.js +9 -9
- package/source/js/post/play-imgs.js +58 -58
- package/source/js/post/toc.js +24 -24
- package/source/js/post/view-imgs.js +27 -27
- package/source/js/utils.js +245 -245
- package/source/xml/local-search.xml +45 -45
- package/templates/Chat.vue +52 -0
- package/templates/GroupImage.vue +36 -0
- package/templates/MenuNav.vue +39 -0
- package/templates/Note.vue +33 -0
- package/templates/Noun.vue +25 -0
- package/templates/NounContent.vue +29 -0
- package/templates/Tab.vue +40 -0
- package/templates/footer.ejs +12 -12
- package/templates/utils/uri.ts +40 -0
- package/source/css/_pages/_tag/tag.styl +0 -9
- package/templates/noun.vue +0 -18
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"
|
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,74 @@
|
|
1
|
-
{
|
2
|
-
"name": "hexo-theme-lnote",
|
3
|
-
"version": "1.2.
|
4
|
-
"description": "An elegant Material-Design theme for Hexo.",
|
5
|
-
"main": "package.json",
|
6
|
-
"
|
7
|
-
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
"
|
26
|
-
"
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
"@types/
|
39
|
-
"@types/
|
40
|
-
"@types/
|
41
|
-
"@types/
|
42
|
-
"@types/
|
43
|
-
"@types/
|
44
|
-
"@types/
|
45
|
-
"@types/
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
52
|
-
"
|
53
|
-
"
|
54
|
-
"
|
55
|
-
"
|
56
|
-
"
|
57
|
-
"
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"
|
64
|
-
|
65
|
-
|
66
|
-
"
|
67
|
-
"
|
68
|
-
|
69
|
-
|
70
|
-
|
1
|
+
{
|
2
|
+
"name": "hexo-theme-lnote",
|
3
|
+
"version": "1.2.6",
|
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__/ymlConf.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/lodash": "^4.14.202",
|
45
|
+
"@types/minimist": "^1.2.4",
|
46
|
+
"@types/node": "^20.8.9",
|
47
|
+
"@types/nunjucks": "^3.2.6",
|
48
|
+
"@types/underscore": "^1.11.12",
|
49
|
+
"clean-webpack-plugin": "^4.0.0",
|
50
|
+
"compare-versions": "^6.1.0",
|
51
|
+
"css": "^3.0.0",
|
52
|
+
"hexo": "^7.0.0",
|
53
|
+
"javascript-obfuscator": "^4.1.0",
|
54
|
+
"jest": "^29.7.0",
|
55
|
+
"jest-transform-yaml": "^1.1.2",
|
56
|
+
"lnote-esm": "^1.0.2",
|
57
|
+
"moment": "^2.29.4",
|
58
|
+
"ts-jest": "^29.1.1",
|
59
|
+
"ts-loader": "^9.5.0",
|
60
|
+
"ts-node": "^10.9.1",
|
61
|
+
"tslib": "^2.6.2",
|
62
|
+
"typescript": "^5.2.2",
|
63
|
+
"webpack": "^5.89.0",
|
64
|
+
"webpack-cli": "^5.1.4",
|
65
|
+
"webpack-merge": "^5.10.0",
|
66
|
+
"webpack-obfuscator": "^3.5.1",
|
67
|
+
"yaml": "^2.3.3"
|
68
|
+
},
|
69
|
+
"dependencies": {
|
70
|
+
"lodash": "^4.17.21",
|
71
|
+
"systeminformation": "^5.21.15",
|
72
|
+
"vue": "^3.3.7"
|
73
|
+
}
|
74
|
+
}
|