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,20 +1,20 @@
|
|
|
1
|
-
<% if (!theme.word_count.only_article_visit || (!index && theme.word_count.only_article_visit)){ %>
|
|
2
|
-
<div class="word_count">
|
|
3
|
-
<span class="post-time">
|
|
4
|
-
<span class="post-meta-item-icon">
|
|
5
|
-
<i class="ri-quill-pen-line"></i>
|
|
6
|
-
<span class="post-meta-item-text"> <%= __('post.word_count') %>:</span>
|
|
7
|
-
<span class="post-count"><%= wordcount(post.content) %></span>
|
|
8
|
-
</span>
|
|
9
|
-
</span>
|
|
10
|
-
|
|
11
|
-
<span class="post-time">
|
|
12
|
-
|
|
|
13
|
-
<span class="post-meta-item-icon">
|
|
14
|
-
<i class="ri-book-open-line"></i>
|
|
15
|
-
<span class="post-meta-item-text"> <%= __('post.read_time') %>≈</span>
|
|
16
|
-
<span class="post-count"><%= min2read(post.content) %> <%= __('post.minutes') %></span>
|
|
17
|
-
</span>
|
|
18
|
-
</span>
|
|
19
|
-
</div>
|
|
1
|
+
<% if (!theme.word_count.only_article_visit || (!index && theme.word_count.only_article_visit)){ %>
|
|
2
|
+
<div class="word_count">
|
|
3
|
+
<span class="post-time">
|
|
4
|
+
<span class="post-meta-item-icon">
|
|
5
|
+
<i class="ri-quill-pen-line"></i>
|
|
6
|
+
<span class="post-meta-item-text"> <%= __('post.word_count') %>:</span>
|
|
7
|
+
<span class="post-count"><%= wordcount(post.content) %></span>
|
|
8
|
+
</span>
|
|
9
|
+
</span>
|
|
10
|
+
|
|
11
|
+
<span class="post-time">
|
|
12
|
+
|
|
|
13
|
+
<span class="post-meta-item-icon">
|
|
14
|
+
<i class="ri-book-open-line"></i>
|
|
15
|
+
<span class="post-meta-item-text"> <%= __('post.read_time') %>≈</span>
|
|
16
|
+
<span class="post-count"><%= min2read(post.content) %> <%= __('post.minutes') %></span>
|
|
17
|
+
</span>
|
|
18
|
+
</span>
|
|
19
|
+
</div>
|
|
20
20
|
<% } %>
|
|
@@ -1,34 +1,49 @@
|
|
|
1
|
-
<button class="float-btn navbar-toggle"></button>
|
|
2
|
-
<nav class="navbar">
|
|
3
|
-
<% if (theme.logo){ %>
|
|
4
|
-
<div class="logo">
|
|
5
|
-
<a href="<%- url_for() %>"><img src="<%- theme.logo %>" alt="<%= config.title %>"></a>
|
|
6
|
-
</div>
|
|
7
|
-
<% } %>
|
|
8
|
-
<ul class="nav nav-main">
|
|
9
|
-
<% for (var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<
|
|
33
|
-
|
|
1
|
+
<button class="float-btn navbar-toggle"></button>
|
|
2
|
+
<nav class="navbar">
|
|
3
|
+
<% if (theme.logo){ %>
|
|
4
|
+
<div class="logo">
|
|
5
|
+
<a href="<%- url_for() %>"><img src="<%- theme.logo %>" alt="<%= config.title %>"></a>
|
|
6
|
+
</div>
|
|
7
|
+
<% } %>
|
|
8
|
+
<ul class="nav nav-main">
|
|
9
|
+
<% for (var key in theme.menu) {
|
|
10
|
+
var item = theme.menu[key];
|
|
11
|
+
var isObj = typeof item === 'object';
|
|
12
|
+
var url = isObj ? item.url : item;
|
|
13
|
+
var target = isObj ? (item.target || 'current') : 'current';
|
|
14
|
+
%>
|
|
15
|
+
<li class="nav-item">
|
|
16
|
+
<a class="nav-item-link"
|
|
17
|
+
href="<%- url_for(url) %>"
|
|
18
|
+
<% if (target === 'blank') { %>
|
|
19
|
+
target="_blank" rel="noopener noreferrer"
|
|
20
|
+
<% } else if (target === 'popup') { %>
|
|
21
|
+
data-target="popup"
|
|
22
|
+
data-popup-name="popup-<%= key %>"
|
|
23
|
+
data-popup-width="<%= item.popup_width || 380 %>"
|
|
24
|
+
data-popup-height="<%= item.popup_height || 620 %>"
|
|
25
|
+
<% } %>
|
|
26
|
+
><%= key %></a>
|
|
27
|
+
</li>
|
|
28
|
+
<% } %>
|
|
29
|
+
</ul>
|
|
30
|
+
</nav>
|
|
31
|
+
<nav class="navbar navbar-bottom">
|
|
32
|
+
<ul class="nav">
|
|
33
|
+
<li class="nav-item">
|
|
34
|
+
<% if (theme.search){ %>
|
|
35
|
+
<a class="nav-item-link nav-item-search" title="<%= __('search') %>">
|
|
36
|
+
<i class="ri-search-line"></i>
|
|
37
|
+
</a>
|
|
38
|
+
<% } %>
|
|
39
|
+
<% if (theme.rss){ %>
|
|
40
|
+
<a class="nav-item-link" target="_blank" href="<%- url_for(theme.rss) %>" title="<%= __('rss_feed') %>">
|
|
41
|
+
<i class="ri-rss-line"></i>
|
|
42
|
+
</a>
|
|
43
|
+
<% } %>
|
|
44
|
+
</li>
|
|
45
|
+
</ul>
|
|
46
|
+
</nav>
|
|
47
|
+
<div class="search-form-wrap">
|
|
48
|
+
<%- partial('post/search') %>
|
|
34
49
|
</div>
|
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
<!-- Root element of PhotoSwipe. Must have class pswp. -->
|
|
2
|
-
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
|
|
3
|
-
|
|
4
|
-
<!-- Background of PhotoSwipe.
|
|
5
|
-
It's a separate element as animating opacity is faster than rgba(). -->
|
|
6
|
-
<div class="pswp__bg"></div>
|
|
7
|
-
|
|
8
|
-
<!-- Slides wrapper with overflow:hidden. -->
|
|
9
|
-
<div class="pswp__scroll-wrap">
|
|
10
|
-
|
|
11
|
-
<!-- Container that holds slides.
|
|
12
|
-
PhotoSwipe keeps only 3 of them in the DOM to save memory.
|
|
13
|
-
Don't modify these 3 pswp__item elements, data is added later on. -->
|
|
14
|
-
<div class="pswp__container">
|
|
15
|
-
<div class="pswp__item"></div>
|
|
16
|
-
<div class="pswp__item"></div>
|
|
17
|
-
<div class="pswp__item"></div>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
|
|
21
|
-
<div class="pswp__ui pswp__ui--hidden">
|
|
22
|
-
|
|
23
|
-
<div class="pswp__top-bar">
|
|
24
|
-
|
|
25
|
-
<!-- Controls are self-explanatory. Order can be changed. -->
|
|
26
|
-
|
|
27
|
-
<div class="pswp__counter"></div>
|
|
28
|
-
|
|
29
|
-
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
|
|
30
|
-
|
|
31
|
-
<button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>
|
|
32
|
-
|
|
33
|
-
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
|
|
34
|
-
|
|
35
|
-
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
|
|
36
|
-
|
|
37
|
-
<!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
|
|
38
|
-
<!-- element will get class pswp__preloader--active when preloader is running -->
|
|
39
|
-
<div class="pswp__preloader">
|
|
40
|
-
<div class="pswp__preloader__icn">
|
|
41
|
-
<div class="pswp__preloader__cut">
|
|
42
|
-
<div class="pswp__preloader__donut"></div>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
|
|
49
|
-
<div class="pswp__share-tooltip"></div>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
|
|
53
|
-
</button>
|
|
54
|
-
|
|
55
|
-
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
|
|
56
|
-
</button>
|
|
57
|
-
|
|
58
|
-
<div class="pswp__caption">
|
|
59
|
-
<div class="pswp__caption__center"></div>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
</div>
|
|
67
|
-
|
|
68
|
-
<link rel="stylesheet" href="https://cdn.staticfile.org/photoswipe/4.1.3/photoswipe.min.css">
|
|
69
|
-
<link rel="stylesheet" href="https://cdn.staticfile.org/photoswipe/4.1.3/default-skin/default-skin.min.css">
|
|
70
|
-
<script src="https://cdn.staticfile.org/photoswipe/4.1.3/photoswipe.min.js"></script>
|
|
71
|
-
<script src="https://cdn.staticfile.org/photoswipe/4.1.3/photoswipe-ui-default.min.js"></script>
|
|
72
|
-
|
|
73
|
-
<script>
|
|
74
|
-
function viewer_init() {
|
|
75
|
-
let pswpElement = document.querySelectorAll('.pswp')[0];
|
|
76
|
-
let $imgArr = document.querySelectorAll(('.article-entry img:not(.reward-img)'))
|
|
77
|
-
|
|
78
|
-
$imgArr.forEach(($em, i) => {
|
|
79
|
-
$em.onclick = () => {
|
|
80
|
-
// slider展开状态
|
|
81
|
-
// todo: 这样不好,后面改成状态
|
|
82
|
-
if (document.querySelector('.left-col.show')) return
|
|
83
|
-
let items = []
|
|
84
|
-
$imgArr.forEach(($em2, i2) => {
|
|
85
|
-
let img = $em2.getAttribute('data-idx', i2)
|
|
86
|
-
let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
|
|
87
|
-
let title = $em2.getAttribute('alt')
|
|
88
|
-
// 获得原图尺寸
|
|
89
|
-
const image = new Image()
|
|
90
|
-
image.src = src
|
|
91
|
-
items.push({
|
|
92
|
-
src: src,
|
|
93
|
-
w: image.width || $em2.width,
|
|
94
|
-
h: image.height || $em2.height,
|
|
95
|
-
title: title
|
|
96
|
-
})
|
|
97
|
-
})
|
|
98
|
-
var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, {
|
|
99
|
-
index: parseInt(i)
|
|
100
|
-
});
|
|
101
|
-
gallery.init()
|
|
102
|
-
}
|
|
103
|
-
})
|
|
104
|
-
}
|
|
105
|
-
viewer_init()
|
|
1
|
+
<!-- Root element of PhotoSwipe. Must have class pswp. -->
|
|
2
|
+
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
|
|
3
|
+
|
|
4
|
+
<!-- Background of PhotoSwipe.
|
|
5
|
+
It's a separate element as animating opacity is faster than rgba(). -->
|
|
6
|
+
<div class="pswp__bg"></div>
|
|
7
|
+
|
|
8
|
+
<!-- Slides wrapper with overflow:hidden. -->
|
|
9
|
+
<div class="pswp__scroll-wrap">
|
|
10
|
+
|
|
11
|
+
<!-- Container that holds slides.
|
|
12
|
+
PhotoSwipe keeps only 3 of them in the DOM to save memory.
|
|
13
|
+
Don't modify these 3 pswp__item elements, data is added later on. -->
|
|
14
|
+
<div class="pswp__container">
|
|
15
|
+
<div class="pswp__item"></div>
|
|
16
|
+
<div class="pswp__item"></div>
|
|
17
|
+
<div class="pswp__item"></div>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
|
|
21
|
+
<div class="pswp__ui pswp__ui--hidden">
|
|
22
|
+
|
|
23
|
+
<div class="pswp__top-bar">
|
|
24
|
+
|
|
25
|
+
<!-- Controls are self-explanatory. Order can be changed. -->
|
|
26
|
+
|
|
27
|
+
<div class="pswp__counter"></div>
|
|
28
|
+
|
|
29
|
+
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
|
|
30
|
+
|
|
31
|
+
<button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>
|
|
32
|
+
|
|
33
|
+
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
|
|
34
|
+
|
|
35
|
+
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
|
|
36
|
+
|
|
37
|
+
<!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
|
|
38
|
+
<!-- element will get class pswp__preloader--active when preloader is running -->
|
|
39
|
+
<div class="pswp__preloader">
|
|
40
|
+
<div class="pswp__preloader__icn">
|
|
41
|
+
<div class="pswp__preloader__cut">
|
|
42
|
+
<div class="pswp__preloader__donut"></div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
|
|
49
|
+
<div class="pswp__share-tooltip"></div>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
|
|
53
|
+
</button>
|
|
54
|
+
|
|
55
|
+
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
|
|
56
|
+
</button>
|
|
57
|
+
|
|
58
|
+
<div class="pswp__caption">
|
|
59
|
+
<div class="pswp__caption__center"></div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/photoswipe/4.1.3/photoswipe.min.css">
|
|
69
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/photoswipe/4.1.3/default-skin/default-skin.min.css">
|
|
70
|
+
<script src="https://cdn.staticfile.org/photoswipe/4.1.3/photoswipe.min.js"></script>
|
|
71
|
+
<script src="https://cdn.staticfile.org/photoswipe/4.1.3/photoswipe-ui-default.min.js"></script>
|
|
72
|
+
|
|
73
|
+
<script>
|
|
74
|
+
function viewer_init() {
|
|
75
|
+
let pswpElement = document.querySelectorAll('.pswp')[0];
|
|
76
|
+
let $imgArr = document.querySelectorAll(('.article-entry img:not(.reward-img)'))
|
|
77
|
+
|
|
78
|
+
$imgArr.forEach(($em, i) => {
|
|
79
|
+
$em.onclick = () => {
|
|
80
|
+
// slider展开状态
|
|
81
|
+
// todo: 这样不好,后面改成状态
|
|
82
|
+
if (document.querySelector('.left-col.show')) return
|
|
83
|
+
let items = []
|
|
84
|
+
$imgArr.forEach(($em2, i2) => {
|
|
85
|
+
let img = $em2.getAttribute('data-idx', i2)
|
|
86
|
+
let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
|
|
87
|
+
let title = $em2.getAttribute('alt')
|
|
88
|
+
// 获得原图尺寸
|
|
89
|
+
const image = new Image()
|
|
90
|
+
image.src = src
|
|
91
|
+
items.push({
|
|
92
|
+
src: src,
|
|
93
|
+
w: image.width || $em2.width,
|
|
94
|
+
h: image.height || $em2.height,
|
|
95
|
+
title: title
|
|
96
|
+
})
|
|
97
|
+
})
|
|
98
|
+
var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, {
|
|
99
|
+
index: parseInt(i)
|
|
100
|
+
});
|
|
101
|
+
gallery.init()
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
}
|
|
105
|
+
viewer_init()
|
|
106
106
|
</script>
|
package/layout/categories.ejs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<section class="outer">
|
|
2
|
-
<% if (site.categories.length){ %>
|
|
3
|
-
<h1 class="page-type-title"><%= __('categories') %></h1>
|
|
4
|
-
<div class="categories-box">
|
|
5
|
-
<%- category_tree() %>
|
|
6
|
-
</div>
|
|
7
|
-
<% } %>
|
|
8
|
-
</section>
|
|
1
|
+
<section class="outer">
|
|
2
|
+
<% if (site.categories.length){ %>
|
|
3
|
+
<h1 class="page-type-title"><%= __('categories') %></h1>
|
|
4
|
+
<div class="categories-box">
|
|
5
|
+
<%- category_tree() %>
|
|
6
|
+
</div>
|
|
7
|
+
<% } %>
|
|
8
|
+
</section>
|
package/layout/friends.ejs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<section class="outer">
|
|
2
|
-
<% if(theme.friends_link && theme.friends_link.length != 0){ %>
|
|
3
|
-
<h1 class="page-type-title"><%= __('friends') %></h1>
|
|
4
|
-
<ul id="friends_link">
|
|
5
|
-
<% for (var i in theme.friends_link){ %>
|
|
6
|
-
<li class="friends_li">
|
|
7
|
-
<a href="<%- url_for(theme.friends_link[i].url) %>" target="_blank" class="search-title"
|
|
8
|
-
<% if (theme.friends_link[i].description){ %>title="<%= theme.friends_link[i].description %>" <% } %>>
|
|
9
|
-
<% if (theme.friends_link[i].img){ %>
|
|
10
|
-
<img src="<%- url_for(theme.friends_link[i].img) %>">
|
|
11
|
-
<% } else { %>
|
|
12
|
-
<i class="ri-user-fill"></i>
|
|
13
|
-
<% } %>
|
|
14
|
-
<%= i %>
|
|
15
|
-
</a>
|
|
16
|
-
</li>
|
|
17
|
-
<% } %>
|
|
18
|
-
</ul>
|
|
19
|
-
<%}%>
|
|
1
|
+
<section class="outer">
|
|
2
|
+
<% if(theme.friends_link && theme.friends_link.length != 0){ %>
|
|
3
|
+
<h1 class="page-type-title"><%= __('friends') %></h1>
|
|
4
|
+
<ul id="friends_link">
|
|
5
|
+
<% for (var i in theme.friends_link){ %>
|
|
6
|
+
<li class="friends_li">
|
|
7
|
+
<a href="<%- url_for(theme.friends_link[i].url) %>" target="_blank" class="search-title"
|
|
8
|
+
<% if (theme.friends_link[i].description){ %>title="<%= theme.friends_link[i].description %>" <% } %>>
|
|
9
|
+
<% if (theme.friends_link[i].img){ %>
|
|
10
|
+
<img src="<%- url_for(theme.friends_link[i].img) %>">
|
|
11
|
+
<% } else { %>
|
|
12
|
+
<i class="ri-user-fill"></i>
|
|
13
|
+
<% } %>
|
|
14
|
+
<%= i %>
|
|
15
|
+
</a>
|
|
16
|
+
</li>
|
|
17
|
+
<% } %>
|
|
18
|
+
</ul>
|
|
19
|
+
<%}%>
|
|
20
20
|
</section>
|
package/layout/index.ejs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<%- partial('_partial/ayeria') %>
|
|
2
|
-
<div id="main">
|
|
3
|
-
<%- partial('_partial/archive', {pagination: 2, index: true}) %>
|
|
4
|
-
</div>
|
|
1
|
+
<%- partial('_partial/ayeria') %>
|
|
2
|
+
<div id="main">
|
|
3
|
+
<%- partial('_partial/archive', {pagination: 2, index: true}) %>
|
|
4
|
+
</div>
|
package/layout/layout.ejs
CHANGED
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
<%- partial('_partial/head') %>
|
|
2
|
-
|
|
3
|
-
<body class="darkmode">
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<%
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<%- partial('_partial/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
<%- partial('_partial/head') %>
|
|
2
|
+
|
|
3
|
+
<body class="darkmode">
|
|
4
|
+
<script>
|
|
5
|
+
if (localStorage.getItem('darkmode') === '0') {
|
|
6
|
+
document.body.classList.remove('darkmode');
|
|
7
|
+
}
|
|
8
|
+
</script>
|
|
9
|
+
<div id="app">
|
|
10
|
+
<% if (theme.click_effect === 2) { %>
|
|
11
|
+
<canvas class="click-effect-canvas"></canvas>
|
|
12
|
+
<% } %>
|
|
13
|
+
<% if (theme.click_effect === 3) { %>
|
|
14
|
+
<canvas class="click-effect-canvas" width="1777" height="841"></canvas>
|
|
15
|
+
<% } %>
|
|
16
|
+
<main class="content on">
|
|
17
|
+
<%- body %>
|
|
18
|
+
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
|
|
19
|
+
</main>
|
|
20
|
+
<div class="float_btns">
|
|
21
|
+
<%- partial('_partial/float-btns') %>
|
|
22
|
+
</div>
|
|
23
|
+
<aside class="sidebar on">
|
|
24
|
+
<%- partial('_partial/sidebar') %>
|
|
25
|
+
</aside>
|
|
26
|
+
<%- partial('_partial/modal') %>
|
|
27
|
+
<%- partial('_partial/after-footer') %>
|
|
28
|
+
|
|
29
|
+
<% if (theme.music&&theme.music.enable){ %>
|
|
30
|
+
<%- partial('_partial/music') %>
|
|
31
|
+
<% } %>
|
|
32
|
+
<%- partial('_partial/lock') %>
|
|
33
|
+
</div>
|
|
34
|
+
</body>
|
|
35
|
+
|
|
31
36
|
</html>
|
package/layout/page.ejs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<section class="outer">
|
|
2
|
-
<%- partial('_partial/article', {post: page, index: false}) %>
|
|
1
|
+
<section class="outer">
|
|
2
|
+
<%- partial('_partial/article', {post: page, index: false}) %>
|
|
3
3
|
</section>
|
package/layout/plain-page.ejs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<section class="outer">
|
|
2
|
-
<h1 class="page-type-title"><%= page.title %></h1>
|
|
3
|
-
<%- page.content %>
|
|
4
|
-
</section>
|
|
1
|
+
<section class="outer">
|
|
2
|
+
<h1 class="page-type-title"><%= page.title %></h1>
|
|
3
|
+
<%- page.content %>
|
|
4
|
+
</section>
|
package/layout/post.ejs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<section class="outer">
|
|
2
|
-
<%- partial('_partial/article', {post: page, index: false}) %>
|
|
1
|
+
<section class="outer">
|
|
2
|
+
<%- partial('_partial/article', {post: page, index: false}) %>
|
|
3
3
|
</section>
|