hexo-theme-ayeria 1.9.10 → 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.
- package/LICENSE +37 -37
- package/README.en.md +560 -560
- package/README.md +560 -560
- package/_config.yml +271 -271
- package/_scaffolds/post.md +8 -8
- package/index.js +11 -2
- package/languages/de.yml +39 -39
- package/languages/default.yml +40 -39
- package/languages/en.yml +40 -39
- package/languages/es.yml +39 -39
- package/languages/fr.yml +39 -39
- package/languages/ja.yml +39 -39
- package/languages/ko.yml +39 -39
- package/languages/nl.yml +39 -39
- package/languages/no.yml +39 -39
- package/languages/pt.yml +39 -39
- package/languages/ru.yml +39 -39
- package/languages/vi.yml +39 -39
- package/languages/zh-CN.yml +40 -39
- package/languages/zh-TW.yml +40 -39
- package/layout/_partial/ads.ejs +8 -8
- package/layout/_partial/after-footer.ejs +84 -84
- package/layout/_partial/archive-post.ejs +13 -13
- package/layout/_partial/archive.ejs +61 -61
- package/layout/_partial/article.ejs +94 -94
- package/layout/_partial/ayeria.ejs +53 -53
- package/layout/_partial/baidu-analytics.ejs +11 -11
- package/layout/_partial/broadcast.ejs +19 -19
- package/layout/_partial/float-btns.ejs +7 -7
- package/layout/_partial/footer.ejs +61 -61
- package/layout/_partial/google-analytics.ejs +10 -10
- package/layout/_partial/head.ejs +64 -68
- package/layout/_partial/katex.ejs +21 -21
- package/layout/_partial/lock.ejs +37 -37
- package/layout/_partial/mathjax.ejs +18 -18
- package/layout/_partial/modal.ejs +70 -76
- package/layout/_partial/music.ejs +15 -15
- package/layout/_partial/post/albums.ejs +16 -16
- package/layout/_partial/post/author.ejs +7 -7
- package/layout/_partial/post/busuanzi.ejs +4 -4
- package/layout/_partial/post/category.ejs +9 -9
- package/layout/_partial/post/clipboard.ejs +54 -54
- package/layout/_partial/post/date.ejs +2 -2
- package/layout/_partial/post/gallery.ejs +15 -15
- package/layout/_partial/post/giscus.ejs +40 -40
- package/layout/_partial/post/gitalk.ejs +12 -12
- package/layout/_partial/post/justifiedGallery.ejs +8 -8
- package/layout/_partial/post/nav.ejs +22 -22
- package/layout/_partial/post/search.ejs +3 -3
- package/layout/_partial/post/share.ejs +53 -53
- package/layout/_partial/post/tag.ejs +5 -5
- package/layout/_partial/post/title.ejs +16 -16
- package/layout/_partial/post/tocbot.ejs +6 -6
- package/layout/_partial/post/topping.ejs +2 -2
- package/layout/_partial/post/twikoo.ejs +7 -7
- package/layout/_partial/post/valine.ejs +48 -48
- package/layout/_partial/post/word.ejs +19 -19
- package/layout/_partial/sidebar.ejs +48 -33
- package/layout/_partial/viewer.ejs +105 -105
- package/layout/categories.ejs +8 -8
- package/layout/friends.ejs +19 -19
- package/layout/index.ejs +4 -4
- package/layout/layout.ejs +35 -30
- package/layout/page.ejs +2 -2
- package/layout/plain-page.ejs +4 -4
- package/layout/post.ejs +2 -2
- package/layout/tags.ejs +88 -88
- package/package.json +39 -39
- package/scripts/default_config.js +6 -6
- package/scripts/events/index.js +11 -11
- package/scripts/events/lib/hello.js +38 -38
- package/scripts/events/lib/merge-configs.js +28 -28
- package/scripts/filters/index.js +13 -13
- package/scripts/filters/meta_generator.js +17 -17
- package/scripts/helpers/ayeria-plus-vendors.js +9 -9
- package/scripts/helpers/category-tree.js +90 -90
- package/scripts/helpers/wordcount.js +39 -39
- package/scripts/lib/core.js +25 -25
- package/scripts/utils/join-path.js +12 -12
- package/scripts/utils/object.js +31 -31
- package/source/404.html +187 -187
- package/source/css/ayeria-layout.styl +48 -48
- package/source/css/clipboard.styl +37 -37
- package/source/css/custom.styl +17 -17
- package/source/css/fonts/remixicon.css +1816 -1816
- package/source/css/fonts/remixicon.svg +5329 -5329
- package/source/data/random-sentences.txt +2629 -141
- package/source/dist/main.css +1 -1
- package/source/dist/main.js +1 -1
- package/source/js/clickBoom1.js +152 -152
- package/source/js/clickBoom2.js +180 -180
- package/source/js/jquery-3.6.0.min.js +2 -2
- package/source/js/lazyload.min.js +7 -7
- package/source/js/search.js +126 -126
- package/source/js/random-sentences.js +0 -166
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
<section class="outer">
|
|
2
|
-
<% if (theme.ads && theme.ads.length != 0){ %>
|
|
3
|
-
<%- partial('ads') %>
|
|
4
|
-
<% } %>
|
|
5
|
-
<% if (theme.broadcast.enable && pagination == 2){ %>
|
|
6
|
-
<%- partial('_partial/broadcast') %>
|
|
7
|
-
<% } %>
|
|
8
|
-
<article class="articles">
|
|
9
|
-
<%
|
|
10
|
-
var title = '';
|
|
11
|
-
if (page.category) title = page.category;
|
|
12
|
-
if (page.tag) title = "#" + " " + page.tag;
|
|
13
|
-
if (page.archive) {
|
|
14
|
-
if (page.year) title = page.year + (page.month ? '/' + page.month : '');
|
|
15
|
-
else title = __('archive_a');
|
|
16
|
-
}
|
|
17
|
-
%>
|
|
18
|
-
<% if (pagination !== 2){ %>
|
|
19
|
-
<h1 class="page-type-title"><%- title %></h1>
|
|
20
|
-
<% } %>
|
|
21
|
-
<% if (pagination == 2){ %>
|
|
22
|
-
<% page.posts.each(function(post){ %>
|
|
23
|
-
<%- partial('article', {post: post, index: true}) %>
|
|
24
|
-
<% }) %>
|
|
25
|
-
</article>
|
|
26
|
-
<% } else { %>
|
|
27
|
-
<% var last; %>
|
|
28
|
-
<% page.posts.each(function(post, i){ %>
|
|
29
|
-
<% var year = post.date.year(); %>
|
|
30
|
-
<% if (last != year){ %>
|
|
31
|
-
<% if (last != null){ %>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
<% } %>
|
|
35
|
-
<% last = year; %>
|
|
36
|
-
<div class="archives-wrap">
|
|
37
|
-
<div class="archive-year-wrap">
|
|
38
|
-
<a href="<%- url_for(config.archive_dir + '/' + year) %>" class="archive-year"><%= year %></a>
|
|
39
|
-
</div>
|
|
40
|
-
<div class="archives">
|
|
41
|
-
<% } %>
|
|
42
|
-
<%- partial('archive-post', {post: post, even: i % 2 == 0}) %>
|
|
43
|
-
<% }) %>
|
|
44
|
-
<% if (page.posts.length){ %>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<% } %>
|
|
48
|
-
<% } %>
|
|
49
|
-
|
|
50
|
-
<% if (page.total > 1){ %>
|
|
51
|
-
<nav class="page-nav">
|
|
52
|
-
<%
|
|
53
|
-
var prev_text = theme.nav_text.page_prev;
|
|
54
|
-
var next_text = theme.nav_text.page_next
|
|
55
|
-
%>
|
|
56
|
-
<%- paginator({
|
|
57
|
-
prev_text: prev_text,
|
|
58
|
-
next_text: next_text
|
|
59
|
-
}) %>
|
|
60
|
-
</nav>
|
|
61
|
-
<% } %>
|
|
1
|
+
<section class="outer">
|
|
2
|
+
<% if (theme.ads && theme.ads.length != 0){ %>
|
|
3
|
+
<%- partial('ads') %>
|
|
4
|
+
<% } %>
|
|
5
|
+
<% if (theme.broadcast.enable && pagination == 2){ %>
|
|
6
|
+
<%- partial('_partial/broadcast') %>
|
|
7
|
+
<% } %>
|
|
8
|
+
<article class="articles">
|
|
9
|
+
<%
|
|
10
|
+
var title = '';
|
|
11
|
+
if (page.category) title = page.category;
|
|
12
|
+
if (page.tag) title = "#" + " " + page.tag;
|
|
13
|
+
if (page.archive) {
|
|
14
|
+
if (page.year) title = page.year + (page.month ? '/' + page.month : '');
|
|
15
|
+
else title = __('archive_a');
|
|
16
|
+
}
|
|
17
|
+
%>
|
|
18
|
+
<% if (pagination !== 2){ %>
|
|
19
|
+
<h1 class="page-type-title"><%- title %></h1>
|
|
20
|
+
<% } %>
|
|
21
|
+
<% if (pagination == 2){ %>
|
|
22
|
+
<% page.posts.each(function(post){ %>
|
|
23
|
+
<%- partial('article', {post: post, index: true}) %>
|
|
24
|
+
<% }) %>
|
|
25
|
+
</article>
|
|
26
|
+
<% } else { %>
|
|
27
|
+
<% var last; %>
|
|
28
|
+
<% page.posts.each(function(post, i){ %>
|
|
29
|
+
<% var year = post.date.year(); %>
|
|
30
|
+
<% if (last != year){ %>
|
|
31
|
+
<% if (last != null){ %>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
<% } %>
|
|
35
|
+
<% last = year; %>
|
|
36
|
+
<div class="archives-wrap">
|
|
37
|
+
<div class="archive-year-wrap">
|
|
38
|
+
<a href="<%- url_for(config.archive_dir + '/' + year) %>" class="archive-year"><%= year %></a>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="archives">
|
|
41
|
+
<% } %>
|
|
42
|
+
<%- partial('archive-post', {post: post, even: i % 2 == 0}) %>
|
|
43
|
+
<% }) %>
|
|
44
|
+
<% if (page.posts.length){ %>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<% } %>
|
|
48
|
+
<% } %>
|
|
49
|
+
|
|
50
|
+
<% if (page.total > 1){ %>
|
|
51
|
+
<nav class="page-nav">
|
|
52
|
+
<%
|
|
53
|
+
var prev_text = theme.nav_text.page_prev;
|
|
54
|
+
var next_text = theme.nav_text.page_next
|
|
55
|
+
%>
|
|
56
|
+
<%- paginator({
|
|
57
|
+
prev_text: prev_text,
|
|
58
|
+
next_text: next_text
|
|
59
|
+
}) %>
|
|
60
|
+
</nav>
|
|
61
|
+
<% } %>
|
|
62
62
|
</section>
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
<article
|
|
2
|
-
id="<%= post.layout %>-<%= post.slug %>"
|
|
3
|
-
class="article article-type-<%= post.layout %>"
|
|
4
|
-
itemscope
|
|
5
|
-
itemprop="blogPost"
|
|
6
|
-
data-scroll-reveal
|
|
7
|
-
>
|
|
8
|
-
<div class="article-inner">
|
|
9
|
-
<% if (post.link || post.title) { %>
|
|
10
|
-
<header class="article-header">
|
|
11
|
-
<%- partial('post/title', {class_name: 'article-title'}) %>
|
|
12
|
-
<%- partial('post/author', {class_name: 'article-author'}) %>
|
|
13
|
-
</header>
|
|
14
|
-
<% } %>
|
|
15
|
-
|
|
16
|
-
<% if (index || is_post()) { %>
|
|
17
|
-
<div class="article-meta">
|
|
18
|
-
<%- partial('post/date', {class_name: 'article-date', date_format: null}) %>
|
|
19
|
-
<%- partial('post/category') %>
|
|
20
|
-
<% if (theme.word_count && theme.word_count.enable && !post.no_word_count) { %>
|
|
21
|
-
<%- partial('post/word') %>
|
|
22
|
-
<% } %>
|
|
23
|
-
</div>
|
|
24
|
-
<% } %>
|
|
25
|
-
|
|
26
|
-
<% if (theme.toc && is_post()) { %>
|
|
27
|
-
<%- partial('post/tocbot') %>
|
|
28
|
-
<% } %>
|
|
29
|
-
|
|
30
|
-
<% if (theme.excerpt_all && index) { %>
|
|
31
|
-
<% } else { %>
|
|
32
|
-
<div class="article-entry" itemprop="articleBody">
|
|
33
|
-
<%- partial('post/justifiedGallery') %>
|
|
34
|
-
<%- partial('post/gallery') %>
|
|
35
|
-
|
|
36
|
-
<% if (post.excerpt && index) { %>
|
|
37
|
-
<%- post.excerpt %>
|
|
38
|
-
<% if (theme.excerpt_link) { %>
|
|
39
|
-
<a class="article-more-link" href="<%- url_for(post.path) %>"><%= theme.excerpt_link %></a>
|
|
40
|
-
<% } %>
|
|
41
|
-
<% } else { %>
|
|
42
|
-
<%- post.content %>
|
|
43
|
-
<% } %>
|
|
44
|
-
|
|
45
|
-
<!-- reward -->
|
|
46
|
-
<% if ((theme.reward_type === 2 || (theme.reward_type === 1 && post.reward)) && !index && !post.no_reward) { %>
|
|
47
|
-
<div id="reward-out">
|
|
48
|
-
<
|
|
49
|
-
<i class="ri-cup-line"></i> <%= (theme.reward && theme.reward.button_text) ? theme.reward.button_text : __('post.reward') %>
|
|
50
|
-
</
|
|
51
|
-
</div>
|
|
52
|
-
<% } %>
|
|
53
|
-
</div>
|
|
54
|
-
<% } %>
|
|
55
|
-
|
|
56
|
-
<!-- copyright -->
|
|
57
|
-
<% if (((theme.copyright_type === 2) || (theme.copyright_type === 1 && post.copyright)) && !index) { %>
|
|
58
|
-
<div class="declare">
|
|
59
|
-
<ul class="post-copyright">
|
|
60
|
-
<li>
|
|
61
|
-
<i class="ri-copyright-line"></i>
|
|
62
|
-
<strong><%= __('post.copyright_title') %>: </strong>
|
|
63
|
-
<% if (post.copyright_content) { %>
|
|
64
|
-
<%= post.copyright_content %>
|
|
65
|
-
<% } else { %>
|
|
66
|
-
<%= __('post.copyright_content') %>
|
|
67
|
-
<% } %>
|
|
68
|
-
</li>
|
|
69
|
-
</ul>
|
|
70
|
-
</div>
|
|
71
|
-
<% } %>
|
|
72
|
-
|
|
73
|
-
<footer class="article-footer">
|
|
74
|
-
<% if (!index && theme.share_enable) { %>
|
|
75
|
-
<%- partial('post/share') %>
|
|
76
|
-
<% } %>
|
|
77
|
-
<%- partial('post/tag') %>
|
|
78
|
-
</footer>
|
|
79
|
-
</div>
|
|
80
|
-
|
|
81
|
-
<% if (!index) { %>
|
|
82
|
-
<%- partial('post/nav') %>
|
|
83
|
-
<% } %>
|
|
84
|
-
|
|
85
|
-
<% if (theme.valine && theme.valine.enable && !post.no_valine) { %>
|
|
86
|
-
<%- partial('post/valine', { key: post.slug, title: post.title, url: config.url + url_for(post.path) }) %>
|
|
87
|
-
<% } %>
|
|
88
|
-
|
|
89
|
-
<!-- [2026-03] 评论系统已从 Gitalk/Twikoo 迁移至 giscus,详见 doc/audit-report.md #1 #9 -->
|
|
90
|
-
|
|
91
|
-
<% if (!index) { %>
|
|
92
|
-
<%- partial('post/giscus') %>
|
|
93
|
-
<% } %>
|
|
94
|
-
</article>
|
|
1
|
+
<article
|
|
2
|
+
id="<%= post.layout %>-<%= post.slug %>"
|
|
3
|
+
class="article article-type-<%= post.layout %>"
|
|
4
|
+
itemscope
|
|
5
|
+
itemprop="blogPost"
|
|
6
|
+
data-scroll-reveal
|
|
7
|
+
>
|
|
8
|
+
<div class="article-inner">
|
|
9
|
+
<% if (post.link || post.title) { %>
|
|
10
|
+
<header class="article-header">
|
|
11
|
+
<%- partial('post/title', {class_name: 'article-title'}) %>
|
|
12
|
+
<%- partial('post/author', {class_name: 'article-author'}) %>
|
|
13
|
+
</header>
|
|
14
|
+
<% } %>
|
|
15
|
+
|
|
16
|
+
<% if (index || is_post()) { %>
|
|
17
|
+
<div class="article-meta">
|
|
18
|
+
<%- partial('post/date', {class_name: 'article-date', date_format: null}) %>
|
|
19
|
+
<%- partial('post/category') %>
|
|
20
|
+
<% if (theme.word_count && theme.word_count.enable && !post.no_word_count) { %>
|
|
21
|
+
<%- partial('post/word') %>
|
|
22
|
+
<% } %>
|
|
23
|
+
</div>
|
|
24
|
+
<% } %>
|
|
25
|
+
|
|
26
|
+
<% if (theme.toc && is_post()) { %>
|
|
27
|
+
<%- partial('post/tocbot') %>
|
|
28
|
+
<% } %>
|
|
29
|
+
|
|
30
|
+
<% if (theme.excerpt_all && index) { %>
|
|
31
|
+
<% } else { %>
|
|
32
|
+
<div class="article-entry" itemprop="articleBody">
|
|
33
|
+
<%- partial('post/justifiedGallery') %>
|
|
34
|
+
<%- partial('post/gallery') %>
|
|
35
|
+
|
|
36
|
+
<% if (post.excerpt && index) { %>
|
|
37
|
+
<%- post.excerpt %>
|
|
38
|
+
<% if (theme.excerpt_link) { %>
|
|
39
|
+
<a class="article-more-link" href="<%- url_for(post.path) %>"><%= theme.excerpt_link %></a>
|
|
40
|
+
<% } %>
|
|
41
|
+
<% } else { %>
|
|
42
|
+
<%- post.content %>
|
|
43
|
+
<% } %>
|
|
44
|
+
|
|
45
|
+
<!-- reward -->
|
|
46
|
+
<% if ((theme.reward_type === 2 || (theme.reward_type === 1 && post.reward)) && !index && !post.no_reward) { %>
|
|
47
|
+
<div id="reward-out">
|
|
48
|
+
<button type="button" id="reward-btn" class="reward-trigger">
|
|
49
|
+
<i class="ri-cup-line"></i> <%= (theme.reward && theme.reward.button_text) ? theme.reward.button_text : __('post.reward') %>
|
|
50
|
+
</button>
|
|
51
|
+
</div>
|
|
52
|
+
<% } %>
|
|
53
|
+
</div>
|
|
54
|
+
<% } %>
|
|
55
|
+
|
|
56
|
+
<!-- copyright -->
|
|
57
|
+
<% if (((theme.copyright_type === 2) || (theme.copyright_type === 1 && post.copyright)) && !index) { %>
|
|
58
|
+
<div class="declare">
|
|
59
|
+
<ul class="post-copyright">
|
|
60
|
+
<li>
|
|
61
|
+
<i class="ri-copyright-line"></i>
|
|
62
|
+
<strong><%= __('post.copyright_title') %>: </strong>
|
|
63
|
+
<% if (post.copyright_content) { %>
|
|
64
|
+
<%= post.copyright_content %>
|
|
65
|
+
<% } else { %>
|
|
66
|
+
<%= __('post.copyright_content') %>
|
|
67
|
+
<% } %>
|
|
68
|
+
</li>
|
|
69
|
+
</ul>
|
|
70
|
+
</div>
|
|
71
|
+
<% } %>
|
|
72
|
+
|
|
73
|
+
<footer class="article-footer">
|
|
74
|
+
<% if (!index && theme.share_enable) { %>
|
|
75
|
+
<%- partial('post/share') %>
|
|
76
|
+
<% } %>
|
|
77
|
+
<%- partial('post/tag') %>
|
|
78
|
+
</footer>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<% if (!index) { %>
|
|
82
|
+
<%- partial('post/nav') %>
|
|
83
|
+
<% } %>
|
|
84
|
+
|
|
85
|
+
<% if (theme.valine && theme.valine.enable && !post.no_valine) { %>
|
|
86
|
+
<%- partial('post/valine', { key: post.slug, title: post.title, url: config.url + url_for(post.path) }) %>
|
|
87
|
+
<% } %>
|
|
88
|
+
|
|
89
|
+
<!-- [2026-03] 评论系统已从 Gitalk/Twikoo 迁移至 giscus,详见 doc/audit-report.md #1 #9 -->
|
|
90
|
+
|
|
91
|
+
<% if (!index) { %>
|
|
92
|
+
<%- partial('post/giscus') %>
|
|
93
|
+
<% } %>
|
|
94
|
+
</article>
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
<% if (theme.cover.enable) { %>
|
|
2
|
-
<section class="cover">
|
|
3
|
-
<% if (theme.github.enable && theme.github.url) { %>
|
|
4
|
-
<a class="forkMe" href="<%= theme.github.url %>" target="_blank">
|
|
5
|
-
<img width="149" height="149" src="<%- url_for('images/forkme.png') %>"
|
|
6
|
-
class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1">
|
|
7
|
-
</a>
|
|
8
|
-
<% } %>
|
|
9
|
-
|
|
10
|
-
<div class="cover-frame">
|
|
11
|
-
<div class="bg-box">
|
|
12
|
-
<img src="<%- theme.cover.path %>" alt="image frame" />
|
|
13
|
-
</div>
|
|
14
|
-
<div class="cover-inner text-center text-white">
|
|
15
|
-
<a href="<%- url_for() %>"><h1><%= config.title %></h1></a>
|
|
16
|
-
<div id="subtitle-box">
|
|
17
|
-
<% if (theme.subtitle.enable) { %>
|
|
18
|
-
<span id="subtitle"></span>
|
|
19
|
-
<% } else { %>
|
|
20
|
-
<span id="subtitle"><%= theme.subtitle.text %></span>
|
|
21
|
-
<% } %>
|
|
22
|
-
</div>
|
|
23
|
-
<div>
|
|
24
|
-
<% if (theme.cover.logo) { %>
|
|
25
|
-
<img src="<%- theme.cover.logo %>" class="cover-logo" alt="<%= config.title %>" />
|
|
26
|
-
<% } %>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<div class="cover-learn-more">
|
|
32
|
-
<a href="javascript:void(0)" class="anchor"><i class="ri-arrow-down-line"></i></a>
|
|
33
|
-
</div>
|
|
34
|
-
</section>
|
|
35
|
-
<% } %>
|
|
36
|
-
|
|
37
|
-
<% if (theme.subtitle.enable) { %>
|
|
38
|
-
<script src="https://cdn.staticfile.org/typed.js/2.0.12/typed.min.js"></script>
|
|
39
|
-
<script>
|
|
40
|
-
try {
|
|
41
|
-
var typed = new Typed("#subtitle", {
|
|
42
|
-
strings: ['<%= theme.subtitle.text %>', '<%= theme.subtitle.text2 %>', '<%= theme.subtitle.text3 %>'],
|
|
43
|
-
startDelay: <%= theme.subtitle.startDelay %>,
|
|
44
|
-
typeSpeed: <%= theme.subtitle.typeSpeed %>,
|
|
45
|
-
loop: <%= theme.subtitle.loop %>,
|
|
46
|
-
backSpeed: <%= theme.subtitle.backSpeed %>,
|
|
47
|
-
showCursor: <%= theme.subtitle.showCursor %>
|
|
48
|
-
});
|
|
49
|
-
} catch (err) {
|
|
50
|
-
console.log(err)
|
|
51
|
-
}
|
|
52
|
-
</script>
|
|
53
|
-
<% } %>
|
|
1
|
+
<% if (theme.cover.enable) { %>
|
|
2
|
+
<section class="cover">
|
|
3
|
+
<% if (theme.github.enable && theme.github.url) { %>
|
|
4
|
+
<a class="forkMe" href="<%= theme.github.url %>" target="_blank">
|
|
5
|
+
<img width="149" height="149" src="<%- url_for('images/forkme.png') %>"
|
|
6
|
+
class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1">
|
|
7
|
+
</a>
|
|
8
|
+
<% } %>
|
|
9
|
+
|
|
10
|
+
<div class="cover-frame">
|
|
11
|
+
<div class="bg-box">
|
|
12
|
+
<img src="<%- theme.cover.path %>" alt="image frame" />
|
|
13
|
+
</div>
|
|
14
|
+
<div class="cover-inner text-center text-white">
|
|
15
|
+
<a href="<%- url_for() %>"><h1><%= config.title %></h1></a>
|
|
16
|
+
<div id="subtitle-box">
|
|
17
|
+
<% if (theme.subtitle.enable) { %>
|
|
18
|
+
<span id="subtitle"></span>
|
|
19
|
+
<% } else { %>
|
|
20
|
+
<span id="subtitle"><%= theme.subtitle.text %></span>
|
|
21
|
+
<% } %>
|
|
22
|
+
</div>
|
|
23
|
+
<div>
|
|
24
|
+
<% if (theme.cover.logo) { %>
|
|
25
|
+
<img src="<%- theme.cover.logo %>" class="cover-logo" alt="<%= config.title %>" />
|
|
26
|
+
<% } %>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div class="cover-learn-more">
|
|
32
|
+
<a href="javascript:void(0)" class="anchor"><i class="ri-arrow-down-line"></i></a>
|
|
33
|
+
</div>
|
|
34
|
+
</section>
|
|
35
|
+
<% } %>
|
|
36
|
+
|
|
37
|
+
<% if (theme.subtitle.enable) { %>
|
|
38
|
+
<script src="https://cdn.staticfile.org/typed.js/2.0.12/typed.min.js"></script>
|
|
39
|
+
<script>
|
|
40
|
+
try {
|
|
41
|
+
var typed = new Typed("#subtitle", {
|
|
42
|
+
strings: ['<%= theme.subtitle.text %>', '<%= theme.subtitle.text2 %>', '<%= theme.subtitle.text3 %>'],
|
|
43
|
+
startDelay: <%= theme.subtitle.startDelay %>,
|
|
44
|
+
typeSpeed: <%= theme.subtitle.typeSpeed %>,
|
|
45
|
+
loop: <%= theme.subtitle.loop %>,
|
|
46
|
+
backSpeed: <%= theme.subtitle.backSpeed %>,
|
|
47
|
+
showCursor: <%= theme.subtitle.showCursor %>
|
|
48
|
+
});
|
|
49
|
+
} catch (err) {
|
|
50
|
+
console.log(err)
|
|
51
|
+
}
|
|
52
|
+
</script>
|
|
53
|
+
<% } %>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<% if (theme.baidu_analytics){ %>
|
|
2
|
-
<script>
|
|
3
|
-
var _hmt = _hmt || [];
|
|
4
|
-
(function() {
|
|
5
|
-
var hm = document.createElement("script");
|
|
6
|
-
hm.src = "https://hm.baidu.com/hm.js?<%= theme.baidu_analytics %>";
|
|
7
|
-
var s = document.getElementsByTagName("script")[0];
|
|
8
|
-
s.parentNode.insertBefore(hm, s);
|
|
9
|
-
})();
|
|
10
|
-
</script>
|
|
11
|
-
<% } %>
|
|
1
|
+
<% if (theme.baidu_analytics){ %>
|
|
2
|
+
<script>
|
|
3
|
+
var _hmt = _hmt || [];
|
|
4
|
+
(function() {
|
|
5
|
+
var hm = document.createElement("script");
|
|
6
|
+
hm.src = "https://hm.baidu.com/hm.js?<%= theme.baidu_analytics %>";
|
|
7
|
+
var s = document.getElementsByTagName("script")[0];
|
|
8
|
+
s.parentNode.insertBefore(hm, s);
|
|
9
|
+
})();
|
|
10
|
+
</script>
|
|
11
|
+
<% } %>
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<% if (theme.broadcast.type===1 && theme.broadcast.text){ %>
|
|
2
|
-
<div class="notice">
|
|
3
|
-
<i class="ri-heart-fill"></i>
|
|
4
|
-
<div class="notice-content"><%= theme.broadcast.text %></div>
|
|
5
|
-
</div>
|
|
6
|
-
<% } %>
|
|
7
|
-
<% if (theme.broadcast.type===2){ %>
|
|
8
|
-
<div class="notice">
|
|
9
|
-
<i class="ri-heart-fill"></i>
|
|
10
|
-
<div class="notice-content" id="broad"></div>
|
|
11
|
-
</div>
|
|
12
|
-
<script type="text/javascript">
|
|
13
|
-
fetch('https://v1.hitokoto.cn')
|
|
14
|
-
.then(response => response.json())
|
|
15
|
-
.then(data => {
|
|
16
|
-
document.getElementById("broad").innerHTML = data.hitokoto;
|
|
17
|
-
})
|
|
18
|
-
.catch(console.error)
|
|
19
|
-
</script>
|
|
1
|
+
<% if (theme.broadcast.type===1 && theme.broadcast.text){ %>
|
|
2
|
+
<div class="notice">
|
|
3
|
+
<i class="ri-heart-fill"></i>
|
|
4
|
+
<div class="notice-content"><%= theme.broadcast.text %></div>
|
|
5
|
+
</div>
|
|
6
|
+
<% } %>
|
|
7
|
+
<% if (theme.broadcast.type===2){ %>
|
|
8
|
+
<div class="notice">
|
|
9
|
+
<i class="ri-heart-fill"></i>
|
|
10
|
+
<div class="notice-content" id="broad"></div>
|
|
11
|
+
</div>
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
fetch('https://v1.hitokoto.cn')
|
|
14
|
+
.then(response => response.json())
|
|
15
|
+
.then(data => {
|
|
16
|
+
document.getElementById("broad").innerHTML = data.hitokoto;
|
|
17
|
+
})
|
|
18
|
+
.catch(console.error)
|
|
19
|
+
</script>
|
|
20
20
|
<% } %>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<div class="float-btn totop" id="totop">
|
|
2
|
-
<i class="ri-arrow-up-line"></i>
|
|
3
|
-
</div>
|
|
4
|
-
<% if (theme.darkmode){ %>
|
|
5
|
-
<div class="float-btn todark" id="todark">
|
|
6
|
-
<i class="ri-moon-line"></i>
|
|
7
|
-
</div>
|
|
1
|
+
<div class="float-btn totop" id="totop">
|
|
2
|
+
<i class="ri-arrow-up-line"></i>
|
|
3
|
+
</div>
|
|
4
|
+
<% if (theme.darkmode){ %>
|
|
5
|
+
<div class="float-btn todark" id="todark">
|
|
6
|
+
<i class="ri-moon-line"></i>
|
|
7
|
+
</div>
|
|
8
8
|
<% } %>
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
<footer class="footer">
|
|
2
|
-
<div class="outer">
|
|
3
|
-
<ul>
|
|
4
|
-
<li>
|
|
5
|
-
Copyrights ©
|
|
6
|
-
<% if (theme.since && !isNaN(theme.since) && theme.since < date(new Date(), 'YYYY')) { %><%- theme.since%>-<% } %><%= date(new Date(), 'YYYY') %>
|
|
7
|
-
<i class="ri-heart-fill heart_icon"></i> <%= config.author || config.title %>
|
|
8
|
-
</li>
|
|
9
|
-
</ul>
|
|
10
|
-
<ul>
|
|
11
|
-
<li>
|
|
12
|
-
<% if (theme.pageFooter){ %>
|
|
13
|
-
<% var hexoLink = '<a href="https://hexo.io" target="_blank">Hexo</a>'; %>
|
|
14
|
-
<% var themeLink = '<a href="https://github.com/KaleidScoper/hexo-theme-ayeria" target="_blank">Ayeria</a>'; %>
|
|
15
|
-
<%- __('powered_by', hexoLink) %>
|
|
16
|
-
<span class="division">|</span>
|
|
17
|
-
<%- __('theme', themeLink) %>
|
|
18
|
-
<% } %>
|
|
19
|
-
</li>
|
|
20
|
-
</ul>
|
|
21
|
-
<ul>
|
|
22
|
-
<li>
|
|
23
|
-
<% if (theme.busuanzi && theme.busuanzi.enable){ %>
|
|
24
|
-
<%# "不蒜子统计" %>
|
|
25
|
-
<%- partial('post/busuanzi') %>
|
|
26
|
-
<% } %>
|
|
27
|
-
</li>
|
|
28
|
-
</ul>
|
|
29
|
-
<ul>
|
|
30
|
-
<% if (theme.icp&&theme.icp.enable){ %>
|
|
31
|
-
<li>
|
|
32
|
-
<a href="<%= theme.icp.url %>" target="_blank" rel="nofollow"><%= theme.icp.text %></a>
|
|
33
|
-
</li>
|
|
34
|
-
<% } %>
|
|
35
|
-
</ul>
|
|
36
|
-
<ul>
|
|
37
|
-
<% if (theme.gongan&&theme.gongan.enable){ %>
|
|
38
|
-
<li>
|
|
39
|
-
<img src="<%= theme.gongan.img %>"></img>
|
|
40
|
-
<a href="<%= theme.gongan.url %>" target="_blank" rel="nofollow"><%= theme.gongan.text %></a>
|
|
41
|
-
</li>
|
|
42
|
-
<% } %>
|
|
43
|
-
</ul>
|
|
44
|
-
<ul>
|
|
45
|
-
<li>
|
|
46
|
-
<!-- cnzz统计 -->
|
|
47
|
-
<% if (theme.cnzz&&theme.cnzz.enable){ %>
|
|
48
|
-
<script type="text/javascript" src='<%= theme.cnzz.url%>'></script>
|
|
49
|
-
<% } %>
|
|
50
|
-
</li>
|
|
51
|
-
</ul>
|
|
52
|
-
<!-- 随机句子模块 -->
|
|
53
|
-
<% if (theme.random_sentences && theme.random_sentences.enable){ %>
|
|
54
|
-
<ul>
|
|
55
|
-
<li>
|
|
56
|
-
<div id="random-sentence" class="random-sentence"
|
|
57
|
-
data-random-sentences-config='{"use_local_file": <%= theme.random_sentences.use_local_file !== undefined ? theme.random_sentences.use_local_file : true %>}'
|
|
58
|
-
</li>
|
|
59
|
-
</ul>
|
|
60
|
-
<% } %>
|
|
61
|
-
</div>
|
|
1
|
+
<footer class="footer">
|
|
2
|
+
<div class="outer">
|
|
3
|
+
<ul>
|
|
4
|
+
<li>
|
|
5
|
+
Copyrights ©
|
|
6
|
+
<% if (theme.since && !isNaN(theme.since) && theme.since < date(new Date(), 'YYYY')) { %><%- theme.since%>-<% } %><%= date(new Date(), 'YYYY') %>
|
|
7
|
+
<i class="ri-heart-fill heart_icon"></i> <%= config.author || config.title %>
|
|
8
|
+
</li>
|
|
9
|
+
</ul>
|
|
10
|
+
<ul>
|
|
11
|
+
<li>
|
|
12
|
+
<% if (theme.pageFooter){ %>
|
|
13
|
+
<% var hexoLink = '<a href="https://hexo.io" target="_blank">Hexo</a>'; %>
|
|
14
|
+
<% var themeLink = '<a href="https://github.com/KaleidScoper/hexo-theme-ayeria" target="_blank">Ayeria</a>'; %>
|
|
15
|
+
<%- __('powered_by', hexoLink) %>
|
|
16
|
+
<span class="division">|</span>
|
|
17
|
+
<%- __('theme', themeLink) %>
|
|
18
|
+
<% } %>
|
|
19
|
+
</li>
|
|
20
|
+
</ul>
|
|
21
|
+
<ul>
|
|
22
|
+
<li>
|
|
23
|
+
<% if (theme.busuanzi && theme.busuanzi.enable){ %>
|
|
24
|
+
<%# "不蒜子统计" %>
|
|
25
|
+
<%- partial('post/busuanzi') %>
|
|
26
|
+
<% } %>
|
|
27
|
+
</li>
|
|
28
|
+
</ul>
|
|
29
|
+
<ul>
|
|
30
|
+
<% if (theme.icp&&theme.icp.enable){ %>
|
|
31
|
+
<li>
|
|
32
|
+
<a href="<%= theme.icp.url %>" target="_blank" rel="nofollow"><%= theme.icp.text %></a>
|
|
33
|
+
</li>
|
|
34
|
+
<% } %>
|
|
35
|
+
</ul>
|
|
36
|
+
<ul>
|
|
37
|
+
<% if (theme.gongan&&theme.gongan.enable){ %>
|
|
38
|
+
<li>
|
|
39
|
+
<img src="<%= theme.gongan.img %>"></img>
|
|
40
|
+
<a href="<%= theme.gongan.url %>" target="_blank" rel="nofollow"><%= theme.gongan.text %></a>
|
|
41
|
+
</li>
|
|
42
|
+
<% } %>
|
|
43
|
+
</ul>
|
|
44
|
+
<ul>
|
|
45
|
+
<li>
|
|
46
|
+
<!-- cnzz统计 -->
|
|
47
|
+
<% if (theme.cnzz&&theme.cnzz.enable){ %>
|
|
48
|
+
<script type="text/javascript" src='<%= theme.cnzz.url%>'></script>
|
|
49
|
+
<% } %>
|
|
50
|
+
</li>
|
|
51
|
+
</ul>
|
|
52
|
+
<!-- 随机句子模块 -->
|
|
53
|
+
<% if (theme.random_sentences && theme.random_sentences.enable){ %>
|
|
54
|
+
<ul>
|
|
55
|
+
<li>
|
|
56
|
+
<div id="random-sentence" class="random-sentence"
|
|
57
|
+
data-random-sentences-config='{"use_local_file": <%= theme.random_sentences.use_local_file !== undefined ? theme.random_sentences.use_local_file : true %>, "queue_size": <%= theme.random_sentences.queue_size || 5 %>}'>千秋岁月毫端聚 一纸烟霞腕底生</div>
|
|
58
|
+
</li>
|
|
59
|
+
</ul>
|
|
60
|
+
<% } %>
|
|
61
|
+
</div>
|
|
62
62
|
</footer>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<% if (theme.google_analytics){ %>
|
|
2
|
-
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
3
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= theme.google_analytics %>"></script>
|
|
4
|
-
<script>
|
|
5
|
-
window.dataLayer = window.dataLayer || [];
|
|
6
|
-
function gtag(){dataLayer.push(arguments);}
|
|
7
|
-
gtag('js', new Date());
|
|
8
|
-
gtag('config', '<%= theme.google_analytics %>');
|
|
9
|
-
</script>
|
|
10
|
-
<% } %>
|
|
1
|
+
<% if (theme.google_analytics){ %>
|
|
2
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
3
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= theme.google_analytics %>"></script>
|
|
4
|
+
<script>
|
|
5
|
+
window.dataLayer = window.dataLayer || [];
|
|
6
|
+
function gtag(){dataLayer.push(arguments);}
|
|
7
|
+
gtag('js', new Date());
|
|
8
|
+
gtag('config', '<%= theme.google_analytics %>');
|
|
9
|
+
</script>
|
|
10
|
+
<% } %>
|