hexo-theme-ayeria 1.9.11 → 1.9.13

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.
Files changed (95) hide show
  1. package/LICENSE +37 -37
  2. package/README.en.md +560 -560
  3. package/README.md +560 -560
  4. package/_config.yml +271 -271
  5. package/_scaffolds/post.md +8 -8
  6. package/index.js +11 -2
  7. package/languages/de.yml +39 -39
  8. package/languages/default.yml +40 -39
  9. package/languages/en.yml +40 -39
  10. package/languages/es.yml +39 -39
  11. package/languages/fr.yml +39 -39
  12. package/languages/ja.yml +39 -39
  13. package/languages/ko.yml +39 -39
  14. package/languages/nl.yml +39 -39
  15. package/languages/no.yml +39 -39
  16. package/languages/pt.yml +39 -39
  17. package/languages/ru.yml +39 -39
  18. package/languages/vi.yml +39 -39
  19. package/languages/zh-CN.yml +40 -39
  20. package/languages/zh-TW.yml +40 -39
  21. package/layout/_partial/ads.ejs +8 -8
  22. package/layout/_partial/after-footer.ejs +84 -84
  23. package/layout/_partial/archive-post.ejs +13 -13
  24. package/layout/_partial/archive.ejs +61 -61
  25. package/layout/_partial/article.ejs +94 -94
  26. package/layout/_partial/ayeria.ejs +53 -53
  27. package/layout/_partial/baidu-analytics.ejs +11 -11
  28. package/layout/_partial/broadcast.ejs +19 -19
  29. package/layout/_partial/float-btns.ejs +7 -7
  30. package/layout/_partial/footer.ejs +61 -61
  31. package/layout/_partial/google-analytics.ejs +10 -10
  32. package/layout/_partial/head.ejs +64 -68
  33. package/layout/_partial/katex.ejs +21 -21
  34. package/layout/_partial/lock.ejs +37 -37
  35. package/layout/_partial/mathjax.ejs +18 -18
  36. package/layout/_partial/modal.ejs +70 -76
  37. package/layout/_partial/music.ejs +15 -15
  38. package/layout/_partial/post/albums.ejs +16 -16
  39. package/layout/_partial/post/author.ejs +7 -7
  40. package/layout/_partial/post/busuanzi.ejs +4 -4
  41. package/layout/_partial/post/category.ejs +9 -9
  42. package/layout/_partial/post/clipboard.ejs +54 -54
  43. package/layout/_partial/post/date.ejs +2 -2
  44. package/layout/_partial/post/gallery.ejs +15 -15
  45. package/layout/_partial/post/giscus.ejs +40 -40
  46. package/layout/_partial/post/gitalk.ejs +12 -12
  47. package/layout/_partial/post/justifiedGallery.ejs +8 -8
  48. package/layout/_partial/post/nav.ejs +22 -22
  49. package/layout/_partial/post/search.ejs +3 -3
  50. package/layout/_partial/post/share.ejs +53 -53
  51. package/layout/_partial/post/tag.ejs +5 -5
  52. package/layout/_partial/post/title.ejs +16 -16
  53. package/layout/_partial/post/tocbot.ejs +6 -6
  54. package/layout/_partial/post/topping.ejs +2 -2
  55. package/layout/_partial/post/twikoo.ejs +7 -7
  56. package/layout/_partial/post/valine.ejs +48 -48
  57. package/layout/_partial/post/word.ejs +19 -19
  58. package/layout/_partial/sidebar.ejs +48 -48
  59. package/layout/_partial/viewer.ejs +105 -105
  60. package/layout/categories.ejs +8 -8
  61. package/layout/friends.ejs +19 -19
  62. package/layout/index.ejs +4 -4
  63. package/layout/layout.ejs +35 -30
  64. package/layout/page.ejs +2 -2
  65. package/layout/plain-page.ejs +4 -4
  66. package/layout/post.ejs +2 -2
  67. package/layout/tags.ejs +88 -88
  68. package/package.json +39 -39
  69. package/scripts/default_config.js +6 -6
  70. package/scripts/events/index.js +11 -11
  71. package/scripts/events/lib/hello.js +38 -38
  72. package/scripts/events/lib/merge-configs.js +28 -28
  73. package/scripts/filters/index.js +13 -13
  74. package/scripts/filters/meta_generator.js +17 -17
  75. package/scripts/helpers/ayeria-plus-vendors.js +9 -9
  76. package/scripts/helpers/category-tree.js +90 -90
  77. package/scripts/helpers/wordcount.js +39 -39
  78. package/scripts/lib/core.js +25 -25
  79. package/scripts/utils/join-path.js +12 -12
  80. package/scripts/utils/object.js +31 -31
  81. package/source/404.html +187 -187
  82. package/source/css/ayeria-layout.styl +48 -48
  83. package/source/css/clipboard.styl +37 -37
  84. package/source/css/custom.styl +17 -17
  85. package/source/css/fonts/remixicon.css +1816 -1816
  86. package/source/css/fonts/remixicon.svg +5329 -5329
  87. package/source/data/random-sentences.txt +2629 -141
  88. package/source/dist/main.css +1 -1
  89. package/source/dist/main.js +1 -1
  90. package/source/js/clickBoom1.js +152 -152
  91. package/source/js/clickBoom2.js +180 -180
  92. package/source/js/jquery-3.6.0.min.js +2 -2
  93. package/source/js/lazyload.min.js +7 -7
  94. package/source/js/search.js +126 -126
  95. package/source/js/random-sentences.js +0 -166
@@ -1,68 +1,64 @@
1
- <!DOCTYPE html>
2
-
3
- <% if (config.language){ %>
4
- <html lang="<%= config.language %>">
5
- <% } else { %>
6
- <html lang="en">
7
- <% }%>
8
-
9
- <head>
10
- <meta charset="utf-8" />
11
- <% var title = page.title; if (is_archive()) { title = __('archive_a'); if
12
- (is_month()) { title += ': ' + page.year + '/' + page.month; } else if
13
- (is_year()) { title += ': ' + page.year; } } else if (is_category()) {
14
- title = page.category; } else if (is_tag()) { title = __('tag') + ': ' +
15
- page.tag; } %> <% if (page.keywords){ %>
16
- <meta
17
- name="keywords"
18
- content="<%= page.keywords %>,<%= config.keywords %>"
19
- />
20
- <% } else if (config.keywords){ %>
21
- <meta name="keywords" content="<%= config.keywords %>" />
22
- <% } %> <% if (page.description){ %>
23
- <meta name="description" content="<%= page.description %>" />
24
- <% } else if (config.description){ %>
25
- <meta name="description" content="<%= config.description %>" />
26
- <% } %>
27
- <meta
28
- name="viewport"
29
- content="width=device-width, initial-scale=1, maximum-scale=1"
30
- />
31
- <title><% if (title){ %><%= title %> | <% } %> <%= config.title %></title>
32
- <% if (theme.favicon){ %>
33
- <link rel="icon" type="image/svg+xml" href="<%- theme.favicon %>" />
34
- <% } %>
35
- <link rel="preconnect" href="https://fonts.font.im" crossorigin />
36
- <link rel="preconnect" href="https://fonts.gstatic.font.im" crossorigin />
37
- <link rel="stylesheet" href="https://fonts.font.im/css2?family=Noto+Serif+SC:wght@400;700&family=Noto+Sans+SC:wght@300;400&display=swap" />
38
- <%- css('dist/main') %>
39
- <%- css('css/fonts/remixicon') %>
40
- <%- css('css/ayeria-layout') %>
41
- <%- css('css/custom') %>
42
- <% if (theme.progressBar){ %>
43
- <script src="https://cdn.staticfile.org/pace/1.2.4/pace.min.js"></script>
44
- <% } %> <%- partial('google-analytics') %> <%- partial('baidu-analytics')
45
- %>
46
- <% if (theme.lock && theme.lock.enable) { %>
47
- <link
48
- rel="stylesheet"
49
- href="https://cdn.staticfile.org/limonte-sweetalert2/11.0.19/sweetalert2.min.css"
50
- />
51
- <script src="https://cdn.staticfile.org/limonte-sweetalert2/11.0.19/sweetalert2.min.js"></script>
52
- <style>
53
- .swal2-styled.swal2-confirm {
54
- font-size: 1.6rem;
55
- }
56
- </style>
57
- <% } %>
58
-
59
- <!-- mermaid -->
60
- <% if (theme.mermaid.enable) { %>
61
- <script src="<%= theme.mermaid.cdn %>"></script>
62
- <% } %>
63
-
64
- <!-- 随机句子功能 -->
65
- <% if (theme.random_sentences && theme.random_sentences.enable){ %>
66
- <script src="/js/random-sentences.js"></script>
67
- <% } %>
68
- </head>
1
+ <!DOCTYPE html>
2
+
3
+ <% if (config.language){ %>
4
+ <html lang="<%= config.language %>">
5
+ <% } else { %>
6
+ <html lang="en">
7
+ <% }%>
8
+
9
+ <head>
10
+ <meta charset="utf-8" />
11
+ <% var title = page.title; if (is_archive()) { title = __('archive_a'); if
12
+ (is_month()) { title += ': ' + page.year + '/' + page.month; } else if
13
+ (is_year()) { title += ': ' + page.year; } } else if (is_category()) {
14
+ title = page.category; } else if (is_tag()) { title = __('tag') + ': ' +
15
+ page.tag; } %> <% if (page.keywords){ %>
16
+ <meta
17
+ name="keywords"
18
+ content="<%= page.keywords %>,<%= config.keywords %>"
19
+ />
20
+ <% } else if (config.keywords){ %>
21
+ <meta name="keywords" content="<%= config.keywords %>" />
22
+ <% } %> <% if (page.description){ %>
23
+ <meta name="description" content="<%= page.description %>" />
24
+ <% } else if (config.description){ %>
25
+ <meta name="description" content="<%= config.description %>" />
26
+ <% } %>
27
+ <meta
28
+ name="viewport"
29
+ content="width=device-width, initial-scale=1, maximum-scale=1"
30
+ />
31
+ <title><% if (title){ %><%= title %> | <% } %> <%= config.title %></title>
32
+ <% if (theme.favicon){ %>
33
+ <link rel="icon" type="image/svg+xml" href="<%- theme.favicon %>" />
34
+ <% } %>
35
+ <link rel="preconnect" href="https://fonts.font.im" crossorigin />
36
+ <link rel="preconnect" href="https://fonts.gstatic.font.im" crossorigin />
37
+ <link rel="stylesheet" href="https://fonts.font.im/css2?family=Noto+Serif+SC:wght@400;700&family=Noto+Sans+SC:wght@300;400&display=swap" />
38
+ <%- css('dist/main') %>
39
+ <%- css('css/fonts/remixicon') %>
40
+ <%- css('css/ayeria-layout') %>
41
+ <%- css('css/custom') %>
42
+ <% if (theme.progressBar){ %>
43
+ <script src="https://cdn.staticfile.org/pace/1.2.4/pace.min.js"></script>
44
+ <% } %> <%- partial('google-analytics') %> <%- partial('baidu-analytics')
45
+ %>
46
+ <% if (theme.lock && theme.lock.enable) { %>
47
+ <link
48
+ rel="stylesheet"
49
+ href="https://cdn.staticfile.org/limonte-sweetalert2/11.0.19/sweetalert2.min.css"
50
+ />
51
+ <script src="https://cdn.staticfile.org/limonte-sweetalert2/11.0.19/sweetalert2.min.js"></script>
52
+ <style>
53
+ .swal2-styled.swal2-confirm {
54
+ font-size: 1.6rem;
55
+ }
56
+ </style>
57
+ <% } %>
58
+
59
+ <!-- mermaid -->
60
+ <% if (theme.mermaid.enable) { %>
61
+ <script src="<%= theme.mermaid.cdn %>"></script>
62
+ <% } %>
63
+
64
+ </head>
@@ -1,22 +1,22 @@
1
- <% if ( theme.katex.enable ) { %>
2
- <% if( theme.katex.allpost || page.math ) { %>
3
- <link rel="stylesheet" href="https://cdn.staticfile.org/KaTeX/0.15.1/katex.min.css">
4
- <script src="https://cdn.staticfile.org/KaTeX/0.15.1/katex.min.js"></script>
5
- <script src="https://cdn.staticfile.org/KaTeX/0.15.1/contrib/auto-render.min.js"></script>
6
- <% if ( theme.katex.copy_tex ) { %>
7
- <script src="https://cdn.staticfile.org/KaTeX/0.15.1/contrib/copy-tex.min.js"></script>
8
- <link rel="stylesheet" href="https://cdn.staticfile.org/KaTeX/0.15.1/contrib/copy-tex.min.css">
9
- <% } %>
10
- <script>
11
- document.addEventListener("DOMContentLoaded", function() {
12
- renderMathInElement(document.body, {
13
- delimiters: [
14
- {left: "$$", right: "$$", display: true},
15
- {left: "$", right: "$", display: false}
16
- ],
17
- throwOnError: false
18
- });
19
- });
20
- </script>
21
- <% } %>
1
+ <% if ( theme.katex.enable ) { %>
2
+ <% if( theme.katex.allpost || page.math ) { %>
3
+ <link rel="stylesheet" href="https://cdn.staticfile.org/KaTeX/0.15.1/katex.min.css">
4
+ <script src="https://cdn.staticfile.org/KaTeX/0.15.1/katex.min.js"></script>
5
+ <script src="https://cdn.staticfile.org/KaTeX/0.15.1/contrib/auto-render.min.js"></script>
6
+ <% if ( theme.katex.copy_tex ) { %>
7
+ <script src="https://cdn.staticfile.org/KaTeX/0.15.1/contrib/copy-tex.min.js"></script>
8
+ <link rel="stylesheet" href="https://cdn.staticfile.org/KaTeX/0.15.1/contrib/copy-tex.min.css">
9
+ <% } %>
10
+ <script>
11
+ document.addEventListener("DOMContentLoaded", function() {
12
+ renderMathInElement(document.body, {
13
+ delimiters: [
14
+ {left: "$$", right: "$$", display: true},
15
+ {left: "$", right: "$", display: false}
16
+ ],
17
+ throwOnError: false
18
+ });
19
+ });
20
+ </script>
21
+ <% } %>
22
22
  <% } %>
@@ -1,37 +1,37 @@
1
- <% if (theme.lock.enable){ %>
2
- <script>
3
- const password = "<%= theme.lock.password %>";
4
- const lock_password = window.sessionStorage.getItem("lock_password");
5
- console.log(password, lock_password);
6
- if (lock_password !== password) {
7
- Swal.fire({
8
- title: "<%= __('lock.lock_info') %>",
9
- input: "text",
10
- inputAttributes: {
11
- autocapitalize: "off",
12
- },
13
- showCancelButton: false,
14
- showLoaderOnConfirm: true,
15
- allowOutsideClick: false,
16
- confirmButtonText: "<%= __('lock.confirm_text') %>",
17
- }).then((result) => {
18
- console.log(result);
19
- if (result.isConfirmed) {
20
- console.log(password);
21
- if (result.value === password) {
22
- window.sessionStorage.setItem("lock_password", result.value);
23
- } else {
24
- Swal.fire({
25
- icon: "error",
26
- title: "<%= __('lock.lock_error') %>",
27
- confirmButtonText: "<%= __('lock.confirm_text') %>",
28
- allowOutsideClick: false,
29
- }).then(() => {
30
- window.location.reload();
31
- });
32
- }
33
- }
34
- });
35
- }
36
- </script>
37
- <% } %>
1
+ <% if (theme.lock.enable){ %>
2
+ <script>
3
+ const password = "<%= theme.lock.password %>";
4
+ const lock_password = window.sessionStorage.getItem("lock_password");
5
+ console.log(password, lock_password);
6
+ if (lock_password !== password) {
7
+ Swal.fire({
8
+ title: "<%= __('lock.lock_info') %>",
9
+ input: "text",
10
+ inputAttributes: {
11
+ autocapitalize: "off",
12
+ },
13
+ showCancelButton: false,
14
+ showLoaderOnConfirm: true,
15
+ allowOutsideClick: false,
16
+ confirmButtonText: "<%= __('lock.confirm_text') %>",
17
+ }).then((result) => {
18
+ console.log(result);
19
+ if (result.isConfirmed) {
20
+ console.log(password);
21
+ if (result.value === password) {
22
+ window.sessionStorage.setItem("lock_password", result.value);
23
+ } else {
24
+ Swal.fire({
25
+ icon: "error",
26
+ title: "<%= __('lock.lock_error') %>",
27
+ confirmButtonText: "<%= __('lock.confirm_text') %>",
28
+ allowOutsideClick: false,
29
+ }).then(() => {
30
+ window.location.reload();
31
+ });
32
+ }
33
+ }
34
+ });
35
+ }
36
+ </script>
37
+ <% } %>
@@ -1,19 +1,19 @@
1
- <script type="text/x-mathjax-config">
2
- MathJax.Hub.Config({
3
- tex2jax: {
4
- inlineMath: [ ['$','$'], ["\\(","\\)"] ],
5
- processEscapes: true,
6
- skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
7
- }
8
- });
9
-
10
- MathJax.Hub.Queue(function() {
11
- var all = MathJax.Hub.getAllJax(), i;
12
- for(i=0; i < all.length; i += 1) {
13
- all[i].SourceElement().parentNode.className += ' has-jax';
14
- }
15
- });
16
- </script>
17
-
18
- <script src="https://cdn.staticfile.org/mathjax/2.7.7/MathJax.js"></script>
1
+ <script type="text/x-mathjax-config">
2
+ MathJax.Hub.Config({
3
+ tex2jax: {
4
+ inlineMath: [ ['$','$'], ["\\(","\\)"] ],
5
+ processEscapes: true,
6
+ skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
7
+ }
8
+ });
9
+
10
+ MathJax.Hub.Queue(function() {
11
+ var all = MathJax.Hub.getAllJax(), i;
12
+ for(i=0; i < all.length; i += 1) {
13
+ all[i].SourceElement().parentNode.className += ' has-jax';
14
+ }
15
+ });
16
+ </script>
17
+
18
+ <script src="https://cdn.staticfile.org/mathjax/2.7.7/MathJax.js"></script>
19
19
  <script src="https://cdn.staticfile.org/mathjax/2.7.7/config/TeX-AMS-MML_HTMLorMML-full.js"></script>
@@ -1,76 +1,70 @@
1
- <div id="mask"></div>
2
-
3
- <% var channels = (theme.reward && theme.reward.channels) ? theme.reward.channels : []; %>
4
- <% if (channels.length > 0) { %>
5
- <div id="reward" class="reward-modal">
6
- <span class="reward-close"><i class="ri-close-line"></i></span>
7
-
8
- <p class="reward-wording">
9
- <i class="ri-cup-line"></i><%= theme.reward_wording %>
10
- </p>
11
-
12
- <% if (channels.length > 1) { %>
13
- <div class="reward-tabs">
14
- <% channels.forEach(function(ch, i) { %>
15
- <button class="reward-tab<%= i === 0 ? ' active' : '' %>"
16
- data-index="<%= i %>">
17
- <i class="<%= ch.icon %>"></i>
18
- <span><%= ch.name %></span>
19
- </button>
20
- <% }); %>
21
- </div>
22
- <% } %>
23
-
24
- <div class="reward-panels">
25
- <% channels.forEach(function(ch, i) { %>
26
- <div class="reward-panel<%= i === 0 ? ' active' : '' %>" data-index="<%= i %>">
27
-
28
- <% if (ch.children && ch.children.length) { %>
29
- <% if (ch.description) { %>
30
- <p class="reward-chain-hint"><%= ch.description %></p>
31
- <% } %>
32
- <div class="reward-sub-tabs">
33
- <% ch.children.forEach(function(sub, j) { %>
34
- <button class="reward-sub-tab<%= j === 0 ? ' active' : '' %>"
35
- data-parent="<%= i %>" data-sub="<%= j %>">
36
- <%= sub.name %>
37
- <% if (sub.badge) { %><span class="reward-sub-badge"><%= sub.badge %></span><% } %>
38
- </button>
39
- <% }); %>
40
- </div>
41
- <% ch.children.forEach(function(sub, j) { %>
42
- <div class="reward-sub-panel<%= j === 0 ? ' active' : '' %>"
43
- data-parent="<%= i %>" data-sub="<%= j %>">
44
- <div class="reward-qrcode-wrap">
45
- <img class="reward-qrcode" src="<%- url_for(sub.qrcode) %>" alt="<%= ch.name %> - <%= sub.name %>">
46
- </div>
47
- <% if (sub.description) { %>
48
- <p class="reward-desc"><%= sub.description %></p>
49
- <% } %>
50
- <% if (sub.link) { %>
51
- <a class="reward-link" href="<%= sub.link %>" target="_blank" rel="noopener">
52
- 前往<%= sub.name %> <i class="ri-external-link-line"></i>
53
- </a>
54
- <% } %>
55
- </div>
56
- <% }); %>
57
- <% } else { %>
58
-
59
- <div class="reward-qrcode-wrap">
60
- <img class="reward-qrcode" src="<%- url_for(ch.qrcode) %>" alt="<%= ch.name %>">
61
- </div>
62
- <% if (ch.description) { %>
63
- <p class="reward-desc"><%= ch.description %></p>
64
- <% } %>
65
- <% if (ch.link) { %>
66
- <a class="reward-link" href="<%= ch.link %>" target="_blank" rel="noopener">
67
- 前往<%= ch.name %> <i class="ri-external-link-line"></i>
68
- </a>
69
- <% } %>
70
- <% } %>
71
-
72
- </div>
73
- <% }); %>
74
- </div>
75
- </div>
76
- <% } %>
1
+ <div id="mask"></div>
2
+
3
+ <% var channels = (theme.reward && theme.reward.channels) ? theme.reward.channels : []; %>
4
+ <% if (channels.length > 0) { %>
5
+ <div id="reward" class="reward-modal" role="dialog" aria-modal="true" aria-labelledby="reward-wording" inert>
6
+ <button type="button" class="reward-close" aria-label="<%= __('close') %>"><i class="ri-close-line" aria-hidden="true"></i></button>
7
+
8
+ <p id="reward-wording" class="reward-wording">
9
+ <i class="ri-cup-line"></i><%= theme.reward_wording %>
10
+ </p>
11
+
12
+ <% if (channels.length > 1) { %>
13
+ <div class="reward-tabs">
14
+ <% channels.forEach(function(ch, i) { %>
15
+ <button type="button" class="reward-tab<%= i === 0 ? ' active' : '' %>"
16
+ data-index="<%= i %>" aria-pressed="<%= i === 0 %>" aria-controls="reward-panel-<%= i %>">
17
+ <i class="<%= ch.icon %>"></i>
18
+ <span><%= ch.name %></span>
19
+ </button>
20
+ <% }); %>
21
+ </div>
22
+ <% } %>
23
+
24
+ <div class="reward-panels">
25
+ <% channels.forEach(function(ch, i) { %>
26
+ <% var hasChildren = ch.children && ch.children.length; %>
27
+ <% var methods = hasChildren ? ch.children : [ch]; %>
28
+ <div id="reward-panel-<%= i %>" class="reward-panel<%= i === 0 ? ' active' : '' %>" data-index="<%= i %>" <%- i === 0 ? '' : 'inert' %>>
29
+
30
+ <div class="reward-method-panels">
31
+ <% methods.forEach(function(sub, j) { %>
32
+ <div class="reward-sub-panel<%= j === 0 ? ' active' : '' %>"
33
+ id="reward-method-<%= i %>-<%= j %>" data-sub="<%= j %>" <%- j === 0 ? '' : 'inert' %>>
34
+ <div class="reward-qrcode-wrap">
35
+ <img class="reward-qrcode" src="<%- url_for(sub.qrcode) %>" alt="<%= hasChildren ? ch.name + ' - ' + sub.name : ch.name %>">
36
+ </div>
37
+ <% if (sub.description) { %>
38
+ <p class="reward-desc"><%= sub.description %></p>
39
+ <% } %>
40
+ <% if (sub.link) { %>
41
+ <a class="reward-link" href="<%= sub.link %>" target="_blank" rel="noopener">
42
+ 前往<%= sub.name %> <i class="ri-external-link-line"></i>
43
+ </a>
44
+ <% } %>
45
+ </div>
46
+ <% }); %>
47
+ </div>
48
+
49
+ <% if (hasChildren) { %>
50
+ <div class="reward-networks">
51
+ <% if (ch.description) { %>
52
+ <p class="reward-chain-hint"><%= ch.description %></p>
53
+ <% } %>
54
+ <div class="reward-sub-tabs">
55
+ <% methods.forEach(function(sub, j) { %>
56
+ <button type="button" class="reward-sub-tab<%= j === 0 ? ' active' : '' %>"
57
+ data-parent="<%= i %>" data-sub="<%= j %>" aria-pressed="<%= j === 0 %>" aria-controls="reward-method-<%= i %>-<%= j %>">
58
+ <%= sub.name %>
59
+ <% if (sub.badge) { %><span class="reward-sub-badge"><%= sub.badge %></span><% } %>
60
+ </button>
61
+ <% }); %>
62
+ </div>
63
+ </div>
64
+ <% } %>
65
+
66
+ </div>
67
+ <% }); %>
68
+ </div>
69
+ </div>
70
+ <% } %>
@@ -1,16 +1,16 @@
1
- <div id="music">
2
- <%# "bottom:120px; left:auto;position:fixed; width:85%" %>
3
- <% var defaultHeight = theme.music.type == 1 ? '32' : '66'; %>
4
- <% var defaultIframeHeight = theme.music.type == 1 ? '52' : '86'; %>
5
- <iframe frameborder="no" border="1" marginwidth="0" marginheight="0" width="200" height="<%=defaultIframeHeight%>"
6
- src="//music.163.com/outchain/player?type=2&id=<%=theme.music.id||22707008%>&auto=<%=theme.music.autoPlay?1:0%>&height=<%=defaultHeight%>"></iframe>
7
- </div>
8
-
9
- <style>
10
- #music {
11
- position: fixed;
12
- right: 15px;
13
- bottom: 0;
14
- z-index: 998;
15
- }
1
+ <div id="music">
2
+ <%# "bottom:120px; left:auto;position:fixed; width:85%" %>
3
+ <% var defaultHeight = theme.music.type == 1 ? '32' : '66'; %>
4
+ <% var defaultIframeHeight = theme.music.type == 1 ? '52' : '86'; %>
5
+ <iframe frameborder="no" border="1" marginwidth="0" marginheight="0" width="200" height="<%=defaultIframeHeight%>"
6
+ src="//music.163.com/outchain/player?type=2&id=<%=theme.music.id||22707008%>&auto=<%=theme.music.autoPlay?1:0%>&height=<%=defaultHeight%>"></iframe>
7
+ </div>
8
+
9
+ <style>
10
+ #music {
11
+ position: fixed;
12
+ right: 15px;
13
+ bottom: 0;
14
+ z-index: 998;
15
+ }
16
16
  </style>
@@ -1,17 +1,17 @@
1
- <% if (post.albums && post.albums.length){ %>
2
- <div class="article-albums">
3
- <ul class="article-albums-photos" id="basicExample">
4
- <% post.albums.forEach(function(photo){ %>
5
-
6
- <li class="article-albums-item" data-scroll-reveal>
7
- <img class="lazy" data-original="<%- url_for(photo[0]) %>" itemprop="image" alt="<%- photo[1] %>"
8
- style="cursor: pointer;">
9
- <% if (photo && photo.length > 1){ %>
10
- <span class="article-albums-caption"> <%- photo[1] %> </span>
11
- <% } %>
12
- </li>
13
-
14
- <% }) %>
15
- </ul>
16
- </div>
1
+ <% if (post.albums && post.albums.length){ %>
2
+ <div class="article-albums">
3
+ <ul class="article-albums-photos" id="basicExample">
4
+ <% post.albums.forEach(function(photo){ %>
5
+
6
+ <li class="article-albums-item" data-scroll-reveal>
7
+ <img class="lazy" data-original="<%- url_for(photo[0]) %>" itemprop="image" alt="<%- photo[1] %>"
8
+ style="cursor: pointer;">
9
+ <% if (photo && photo.length > 1){ %>
10
+ <span class="article-albums-caption"> <%- photo[1] %> </span>
11
+ <% } %>
12
+ </li>
13
+
14
+ <% }) %>
15
+ </ul>
16
+ </div>
17
17
  <% } %>
@@ -1,8 +1,8 @@
1
- <% if (post.authors && post.authors.length){ %>
2
- <div class="<%= class_name %>" <% if (!index){ %> style="text-align: center" <% }%>>
3
- 作者:<% for (var i = 0; i < post.authors.length - 1; i++) { %>
4
- <%= post.authors[i]%> ,
5
- <% }%> <%= post.authors[post.authors.length - 1] %>
6
- </div>
7
-
1
+ <% if (post.authors && post.authors.length){ %>
2
+ <div class="<%= class_name %>" <% if (!index){ %> style="text-align: center" <% }%>>
3
+ 作者:<% for (var i = 0; i < post.authors.length - 1; i++) { %>
4
+ <%= post.authors[i]%> ,
5
+ <% }%> <%= post.authors[post.authors.length - 1] %>
6
+ </div>
7
+
8
8
  <% } %>
@@ -1,5 +1,5 @@
1
- <span>
2
- <span><i class="ri-user-3-fill"></i><%- __('site_visitors') %>:<span id="busuanzi_value_site_uv"></span></span>
3
- <span class="division">|</span>
4
- <span><i class="ri-eye-fill"></i><%- __('page_views') %>:<span id="busuanzi_value_page_pv"></span></span>
1
+ <span>
2
+ <span><i class="ri-user-3-fill"></i><%- __('site_visitors') %>:<span id="busuanzi_value_site_uv"></span></span>
3
+ <span class="division">|</span>
4
+ <span><i class="ri-eye-fill"></i><%- __('page_views') %>:<span id="busuanzi_value_page_pv"></span></span>
5
5
  </span>
@@ -1,10 +1,10 @@
1
- <% if (post.categories && post.categories.length){ %>
2
- <div class="article-category">
3
- <%- list_categories(post.categories, {
4
- show_count: false,
5
- class: 'article-category',
6
- style: 'none',
7
- separator: ' / '
8
- }) %>
9
- </div>
1
+ <% if (post.categories && post.categories.length){ %>
2
+ <div class="article-category">
3
+ <%- list_categories(post.categories, {
4
+ show_count: false,
5
+ class: 'article-category',
6
+ style: 'none',
7
+ separator: ' / '
8
+ }) %>
9
+ </div>
10
10
  <% } %>