hexo-theme-lnote 1.2.5 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +36 -123
- package/_config.yml +19 -19
- package/config/links.yml +63 -63
- package/config/svg.yml +33 -33
- package/index.d.ts +3 -3
- 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 -4
- 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 -8
- 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 +73 -73
- package/scripts/index.js +1 -0
- 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 +36 -36
- package/source/css/_pages/_base/_widget/copyright.styl +90 -90
- package/source/css/_pages/_base/_widget/footer.styl +65 -65
- package/source/css/_pages/_base/_widget/footnote.styl +25 -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 +12 -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 +19 -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 +38 -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 +79 -79
- package/source/css/_pages/_post/comment.styl +27 -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 +9 -9
- package/source/css/_pages/_post/post-tag.styl +75 -43
- 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 +83 -80
- 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 +39 -11
- package/templates/noun.vue +0 -15
@@ -1,9 +1,9 @@
|
|
1
|
-
let theme = document.documentElement.getAttribute('data-bs-theme')
|
2
|
-
if (theme !== 'dark') {
|
3
|
-
theme = 'forest'
|
4
|
-
}
|
5
|
-
mermaid.initialize({
|
6
|
-
theme,
|
7
|
-
startOnLoad: true
|
8
|
-
})
|
9
|
-
mermaid.init()
|
1
|
+
let theme = document.documentElement.getAttribute('data-bs-theme')
|
2
|
+
if (theme !== 'dark') {
|
3
|
+
theme = 'forest'
|
4
|
+
}
|
5
|
+
mermaid.initialize({
|
6
|
+
theme,
|
7
|
+
startOnLoad: true
|
8
|
+
})
|
9
|
+
mermaid.init()
|
@@ -1,59 +1,59 @@
|
|
1
|
-
(() => {
|
2
|
-
jQuery('.markdown-body :not(a) > img, .markdown-body > img').each(function() {
|
3
|
-
var $image = jQuery(this);
|
4
|
-
var imageUrl = $image.attr('data-src') || $image.attr('src');
|
5
|
-
var $imageWrap = $image.wrap(`
|
6
|
-
<a class="fancybox fancybox.image" href="${imageUrl}"
|
7
|
-
itemscope itemtype="http://schema.org/ImageObject" itemprop="url"></a>`
|
8
|
-
).parent('a');
|
9
|
-
if ($imageWrap.length !== 0) {
|
10
|
-
if ($image.is('.group-image-container img')) {
|
11
|
-
$imageWrap.attr('data-fancybox', 'group').attr('rel', 'group');
|
12
|
-
} else {
|
13
|
-
$imageWrap.attr('data-fancybox', 'default').attr('rel', 'default');
|
14
|
-
}
|
15
|
-
|
16
|
-
var imageTitle = $image.attr('title') || $image.attr('alt');
|
17
|
-
if (imageTitle) {
|
18
|
-
$imageWrap.attr('title', imageTitle).attr('data-caption', imageTitle);
|
19
|
-
}
|
20
|
-
}
|
21
|
-
});
|
22
|
-
|
23
|
-
jQuery.fancybox.defaults.hash = false;
|
24
|
-
jQuery('.fancybox').fancybox({
|
25
|
-
protect: true,
|
26
|
-
loop: false,
|
27
|
-
arrows: true,
|
28
|
-
infobar: false,
|
29
|
-
toolbar: true,
|
30
|
-
buttons : [
|
31
|
-
// 'slideShow',
|
32
|
-
// 'fullScreen',
|
33
|
-
// 'thumbs',
|
34
|
-
// 'share',
|
35
|
-
//'download',
|
36
|
-
// 'zoom',
|
37
|
-
'close'
|
38
|
-
],
|
39
|
-
dblclickContent: 'zoom',
|
40
|
-
btnTpl: {
|
41
|
-
arrowLeft: '<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}">' +
|
42
|
-
'<svg width="18" height="18">' +
|
43
|
-
'<use xlink:href="#chevron-left"></use>' +
|
44
|
-
'</svg>' +
|
45
|
-
'</button>',
|
46
|
-
arrowRight : '<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}">' +
|
47
|
-
'<svg width="18" height="18">' +
|
48
|
-
'<use xlink:href="#chevron-right"></use>' +
|
49
|
-
'</svg>' +
|
50
|
-
'</button>'
|
51
|
-
},
|
52
|
-
mobile: {
|
53
|
-
// protect: false,
|
54
|
-
clickSlide: 'close',
|
55
|
-
dblclickContent: 'zoom',
|
56
|
-
dblclickSlide: 'zoom'
|
57
|
-
}
|
58
|
-
});
|
1
|
+
(() => {
|
2
|
+
jQuery('.markdown-body :not(a) > img, .markdown-body > img').each(function() {
|
3
|
+
var $image = jQuery(this);
|
4
|
+
var imageUrl = $image.attr('data-src') || $image.attr('src');
|
5
|
+
var $imageWrap = $image.wrap(`
|
6
|
+
<a class="fancybox fancybox.image" href="${imageUrl}"
|
7
|
+
itemscope itemtype="http://schema.org/ImageObject" itemprop="url"></a>`
|
8
|
+
).parent('a');
|
9
|
+
if ($imageWrap.length !== 0) {
|
10
|
+
if ($image.is('.group-image-container img')) {
|
11
|
+
$imageWrap.attr('data-fancybox', 'group').attr('rel', 'group');
|
12
|
+
} else {
|
13
|
+
$imageWrap.attr('data-fancybox', 'default').attr('rel', 'default');
|
14
|
+
}
|
15
|
+
|
16
|
+
var imageTitle = $image.attr('title') || $image.attr('alt');
|
17
|
+
if (imageTitle) {
|
18
|
+
$imageWrap.attr('title', imageTitle).attr('data-caption', imageTitle);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
});
|
22
|
+
|
23
|
+
jQuery.fancybox.defaults.hash = false;
|
24
|
+
jQuery('.fancybox').fancybox({
|
25
|
+
protect: true,
|
26
|
+
loop: false,
|
27
|
+
arrows: true,
|
28
|
+
infobar: false,
|
29
|
+
toolbar: true,
|
30
|
+
buttons : [
|
31
|
+
// 'slideShow',
|
32
|
+
// 'fullScreen',
|
33
|
+
// 'thumbs',
|
34
|
+
// 'share',
|
35
|
+
//'download',
|
36
|
+
// 'zoom',
|
37
|
+
'close'
|
38
|
+
],
|
39
|
+
dblclickContent: 'zoom',
|
40
|
+
btnTpl: {
|
41
|
+
arrowLeft: '<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}">' +
|
42
|
+
'<svg width="18" height="18">' +
|
43
|
+
'<use xlink:href="#chevron-left"></use>' +
|
44
|
+
'</svg>' +
|
45
|
+
'</button>',
|
46
|
+
arrowRight : '<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}">' +
|
47
|
+
'<svg width="18" height="18">' +
|
48
|
+
'<use xlink:href="#chevron-right"></use>' +
|
49
|
+
'</svg>' +
|
50
|
+
'</button>'
|
51
|
+
},
|
52
|
+
mobile: {
|
53
|
+
// protect: false,
|
54
|
+
clickSlide: 'close',
|
55
|
+
dblclickContent: 'zoom',
|
56
|
+
dblclickSlide: 'zoom'
|
57
|
+
}
|
58
|
+
});
|
59
59
|
})()
|
package/source/js/post/toc.js
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
(() => {
|
2
|
-
if (!window.tocbot) {
|
3
|
-
return
|
4
|
-
}
|
5
|
-
|
6
|
-
window.tocbot.init({
|
7
|
-
tocSelector: '#toc-body',
|
8
|
-
contentSelector: '.markdown-body',
|
9
|
-
linkClass: 'tocbot-link',
|
10
|
-
activeLinkClass: 'tocbot-active-link',
|
11
|
-
listClass: 'tocbot-list',
|
12
|
-
isCollapsedClass: 'tocbot-is-collapsed',
|
13
|
-
collapsibleClass: 'tocbot-is-collapsible',
|
14
|
-
scrollSmooth: true,
|
15
|
-
includeTitleTags: true,
|
16
|
-
// headingsOffset: -boardTop,
|
17
|
-
headingSelector: 'h1,h2,h3,h4',
|
18
|
-
placement: 'right',
|
19
|
-
collapseDepth: 0
|
20
|
-
})
|
21
|
-
|
22
|
-
const toc = document.getElementById('toc')
|
23
|
-
toc.style.visibility = 'visible'
|
24
|
-
})()
|
1
|
+
(() => {
|
2
|
+
if (!window.tocbot) {
|
3
|
+
return
|
4
|
+
}
|
5
|
+
|
6
|
+
window.tocbot.init({
|
7
|
+
tocSelector: '#toc-body',
|
8
|
+
contentSelector: '.markdown-body',
|
9
|
+
linkClass: 'tocbot-link',
|
10
|
+
activeLinkClass: 'tocbot-active-link',
|
11
|
+
listClass: 'tocbot-list',
|
12
|
+
isCollapsedClass: 'tocbot-is-collapsed',
|
13
|
+
collapsibleClass: 'tocbot-is-collapsible',
|
14
|
+
scrollSmooth: true,
|
15
|
+
includeTitleTags: true,
|
16
|
+
// headingsOffset: -boardTop,
|
17
|
+
headingSelector: 'h1,h2,h3,h4',
|
18
|
+
placement: 'right',
|
19
|
+
collapseDepth: 0
|
20
|
+
})
|
21
|
+
|
22
|
+
const toc = document.getElementById('toc')
|
23
|
+
toc.style.visibility = 'visible'
|
24
|
+
})()
|
@@ -1,27 +1,27 @@
|
|
1
|
-
;(() => {
|
2
|
-
if (!'Viewer' in window) {
|
3
|
-
return
|
4
|
-
}
|
5
|
-
new Viewer(document.getElementById('board'), {
|
6
|
-
backdrop: true,
|
7
|
-
button: true,
|
8
|
-
focus: true,
|
9
|
-
fullscreen: true,
|
10
|
-
loading: true,
|
11
|
-
loop: true,
|
12
|
-
keyboard: true,
|
13
|
-
moveable: true,
|
14
|
-
navbar: false,
|
15
|
-
rotatable: true,
|
16
|
-
scalable: true,
|
17
|
-
slideOnTouch: true,
|
18
|
-
title: true,
|
19
|
-
toggleOnDblclick: true,
|
20
|
-
toolbar: true,
|
21
|
-
tooltip: true,
|
22
|
-
transition: true,
|
23
|
-
zoomable: true,
|
24
|
-
zoomOnTouch: true,
|
25
|
-
zoomOnWheel: true
|
26
|
-
})
|
27
|
-
})()
|
1
|
+
;(() => {
|
2
|
+
if (!'Viewer' in window) {
|
3
|
+
return
|
4
|
+
}
|
5
|
+
new Viewer(document.getElementById('board'), {
|
6
|
+
backdrop: true,
|
7
|
+
button: true,
|
8
|
+
focus: true,
|
9
|
+
fullscreen: true,
|
10
|
+
loading: true,
|
11
|
+
loop: true,
|
12
|
+
keyboard: true,
|
13
|
+
moveable: true,
|
14
|
+
navbar: false,
|
15
|
+
rotatable: true,
|
16
|
+
scalable: true,
|
17
|
+
slideOnTouch: true,
|
18
|
+
title: true,
|
19
|
+
toggleOnDblclick: true,
|
20
|
+
toolbar: true,
|
21
|
+
tooltip: true,
|
22
|
+
transition: true,
|
23
|
+
zoomable: true,
|
24
|
+
zoomOnTouch: true,
|
25
|
+
zoomOnWheel: true
|
26
|
+
})
|
27
|
+
})()
|