Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
1c857a0c5f | ||
|
302c6080fd | ||
|
ec47bd254a | ||
|
42a6eb0c33 | ||
|
0c0ea3312c | ||
|
1e0275d757 | ||
|
c5f8d5d058 | ||
|
38e99de4fb | ||
|
24be666717 | ||
|
4991ad5085 | ||
|
ed96a4ac21 | ||
|
c61cbb4803 | ||
|
2e7b792039 | ||
|
76096640f4 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,3 +7,4 @@ package-lock.json
|
|||||||
node_modules/
|
node_modules/
|
||||||
.cache
|
.cache
|
||||||
.history
|
.history
|
||||||
|
_bak.yml
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
.cache/
|
.cache/
|
||||||
.history/
|
.history/
|
||||||
.github/
|
.github/
|
||||||
|
_bak.yml
|
10
_config.yml
10
_config.yml
@@ -157,6 +157,12 @@ katex:
|
|||||||
allpost: true
|
allpost: true
|
||||||
copy_tex: false
|
copy_tex: false
|
||||||
|
|
||||||
|
# mermaid流程图 三个选项缺一不可(https://mermaid-js.github.io/mermaid/)
|
||||||
|
mermaid:
|
||||||
|
enable: false
|
||||||
|
cdn: https://cdn.jsdelivr.net/npm/mermaid@8.9.2/dist/mermaid.min.js
|
||||||
|
theme: forest
|
||||||
|
|
||||||
# 网站成立年份(默认为 2019,若填入年份小于当前年份,则显示为 2018-2019 类似的格式)
|
# 网站成立年份(默认为 2019,若填入年份小于当前年份,则显示为 2018-2019 类似的格式)
|
||||||
since: 2015
|
since: 2015
|
||||||
|
|
||||||
@@ -227,12 +233,10 @@ twikoo:
|
|||||||
# See: https://github.com/MiniValine/MiniValine
|
# See: https://github.com/MiniValine/MiniValine
|
||||||
minivaline:
|
minivaline:
|
||||||
enable: false
|
enable: false
|
||||||
md: true
|
|
||||||
# 更多选项 https://minivaline.js.org/docs/cn/#/Options 按照yml格式继续填写即可 (除了 [el] 选项)
|
# 更多选项 https://minivaline.js.org/docs/cn/#/Options 按照yml格式继续填写即可 (除了 [el] 选项)
|
||||||
# emoticonUrl 等列表选项 可参考 https://github.com/MiniValine/hexo-next-minivaline
|
# emoticonUrl 等列表选项 可参考 https://github.com/MiniValine/hexo-next-minivaline
|
||||||
# 下面是一个例子:
|
# 下面是一个例子:
|
||||||
backend: waline
|
serverURL: https://minivaline.your-domain.com
|
||||||
serverURL: https://waline.vercel.app
|
|
||||||
|
|
||||||
# 首页广告配置
|
# 首页广告配置
|
||||||
# 可以根据需要自行增加ad_3,ad_4...,留空则不显示,建议图片和url不要带ad等关键词,否则可能会被adblock等插件屏蔽
|
# 可以根据需要自行增加ad_3,ad_4...,留空则不显示,建议图片和url不要带ad等关键词,否则可能会被adblock等插件屏蔽
|
||||||
|
@@ -1,66 +1,57 @@
|
|||||||
<%- js('/js/jquery-2.0.3.min') %>
|
<%- js('/js/jquery-2.0.3.min') %> <%- js('/js/lazyload.min') %>
|
||||||
<%- js('/js/lazyload.min') %>
|
|
||||||
<!-- Tocbot -->
|
<!-- Tocbot -->
|
||||||
<% if (theme.toc && is_post() && !page.no_toc){ %>
|
<% if (theme.toc && is_post() && !page.no_toc){ %> <%- js('/js/tocbot.min') %>
|
||||||
<%- js('/js/tocbot.min') %>
|
|
||||||
<script>
|
<script>
|
||||||
tocbot.init({
|
tocbot.init({
|
||||||
tocSelector: '.tocbot',
|
tocSelector: ".tocbot",
|
||||||
contentSelector: '.article-entry',
|
contentSelector: ".article-entry",
|
||||||
headingSelector: 'h1, h2, h3, h4, h5, h6',
|
headingSelector: "h1, h2, h3, h4, h5, h6",
|
||||||
hasInnerContainers: true,
|
hasInnerContainers: true,
|
||||||
scrollSmooth: true,
|
scrollSmooth: true,
|
||||||
scrollContainer: 'main',
|
scrollContainer: "main",
|
||||||
positionFixedSelector: '.tocbot',
|
positionFixedSelector: ".tocbot",
|
||||||
positionFixedClass: 'is-position-fixed',
|
positionFixedClass: "is-position-fixed",
|
||||||
fixedSidebarOffset: 'auto'
|
fixedSidebarOffset: "auto",
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<% } %>
|
<% } %>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css"
|
||||||
|
/>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>
|
||||||
<%- js('dist/main') %>
|
<%- js('dist/main') %>
|
||||||
<!-- ImageViewer -->
|
<!-- ImageViewer -->
|
||||||
<% if (theme.image_viewer){ %>
|
<% if (theme.image_viewer){ %> <%- partial('viewer') %> <% } %>
|
||||||
<%- partial('viewer') %>
|
|
||||||
<% } %>
|
|
||||||
<!-- MathJax -->
|
<!-- MathJax -->
|
||||||
<% if (theme.mathjax){ %>
|
<% if (theme.mathjax){ %> <%- partial('mathjax') %>
|
||||||
<%- partial('mathjax') %>
|
|
||||||
<script>
|
<script>
|
||||||
var ayerConfig = {
|
var ayerConfig = {
|
||||||
mathjax: true
|
mathjax: true,
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
<% } %>
|
<% } %>
|
||||||
<!-- Katex -->
|
<!-- Katex -->
|
||||||
<% if (theme.katex.enable){ %>
|
<% if (theme.katex.enable){ %> <%- partial('katex') %> <% } %>
|
||||||
<%- partial('katex') %>
|
|
||||||
<% } %>
|
|
||||||
<!-- busuanzi -->
|
<!-- busuanzi -->
|
||||||
<% if (theme.busuanzi && theme.busuanzi.enable){ %>
|
<% if (theme.busuanzi && theme.busuanzi.enable){ %> <%-
|
||||||
<%- js('/js/busuanzi-2.3.pure.min') %>
|
js('/js/busuanzi-2.3.pure.min') %> <% } %>
|
||||||
<% } %>
|
|
||||||
<!-- ClickLove -->
|
<!-- ClickLove -->
|
||||||
<% if (theme.click_effect===1){ %>
|
<% if (theme.click_effect===1){ %> <%- js('/js/clickLove') %> <% } %>
|
||||||
<%- js('/js/clickLove') %>
|
|
||||||
<% } %>
|
|
||||||
<!-- ClickBoom1 -->
|
<!-- ClickBoom1 -->
|
||||||
<% if (theme.click_effect===2){ %>
|
<% if (theme.click_effect===2){ %>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.js"></script>
|
||||||
<%- js('/js/clickBoom1') %>
|
<%- js('/js/clickBoom1') %> <% } %>
|
||||||
<% } %>
|
|
||||||
<!-- ClickBoom2 -->
|
<!-- ClickBoom2 -->
|
||||||
<% if (theme.click_effect===3){ %>
|
<% if (theme.click_effect===3){ %> <%- js('/js/clickBoom2') %> <% } %>
|
||||||
<%- js('/js/clickBoom2') %>
|
|
||||||
<% } %>
|
|
||||||
<!-- CodeCopy -->
|
<!-- CodeCopy -->
|
||||||
<% if (theme.copy_btn == true) { %>
|
<% if (theme.copy_btn == true) { %> <%- css('/css/clipboard') %> <%-
|
||||||
<%- css('/css/clipboard') %>
|
partial('post/clipboard') %> <% } %>
|
||||||
<%- partial('post/clipboard') %>
|
|
||||||
<% } %>
|
|
||||||
<!-- CanvasBackground -->
|
<!-- CanvasBackground -->
|
||||||
<% if (theme.canvas_bg == 1) { %>
|
<% if (theme.canvas_bg == 1) { %> <%- js('/js/dz') %> <% } %>
|
||||||
<%- js('/js/dz') %>
|
<script>
|
||||||
<% } %>
|
if (window.mermaid) {
|
||||||
|
mermaid.initialize({ theme: "<%= theme.mermaid.theme %>" });
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
@@ -2,40 +2,48 @@
|
|||||||
|
|
||||||
<% if (config.language){ %>
|
<% if (config.language){ %>
|
||||||
<html lang="<%= config.language %>">
|
<html lang="<%= config.language %>">
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<% }%>
|
<% }%>
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<% var title = page.title; if (is_archive()) { title = __('archive_a'); if
|
|
||||||
(is_month()) { title += ': ' + page.year + '/' + page.month; } else if
|
|
||||||
(is_year()) { title += ': ' + page.year; } } else if (is_category()) { title
|
|
||||||
= page.category; } else if (is_tag()) {
|
|
||||||
title = __('tag') + ': ' + page.tag; } %> <% if (page.keywords){ %>
|
|
||||||
<meta name="keywords" content="<%= page.keywords %>,<%= config.keywords %>" />
|
|
||||||
<% } else if (config.keywords){ %>
|
|
||||||
<meta name="keywords" content="<%= config.keywords %>" />
|
|
||||||
<% } %> <% if (page.description){ %>
|
|
||||||
<meta name="description" content="<%= page.description %>" />
|
|
||||||
<% } else if (config.description){ %>
|
|
||||||
<meta name="description" content="<%= config.description %>" />
|
|
||||||
<% } %>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
||||||
<title>
|
|
||||||
<% if (title){ %><%= title %> | <% } %> <%= config.title %>
|
|
||||||
</title>
|
|
||||||
<% if (theme.favicon){ %>
|
|
||||||
<link rel="shortcut icon" href="<%- theme.favicon %>" />
|
|
||||||
<% } %>
|
|
||||||
<%- css('dist/main') %>
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/css/remixicon.min.css">
|
|
||||||
<%- css('css/custom') %>
|
|
||||||
<% if (theme.progressBar){ %>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script>
|
|
||||||
<% } %>
|
|
||||||
<%- partial('google-analytics') %>
|
|
||||||
<%- partial('baidu-analytics') %>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<% var title = page.title; if (is_archive()) { title = __('archive_a'); if
|
||||||
|
(is_month()) { title += ': ' + page.year + '/' + page.month; } else if
|
||||||
|
(is_year()) { title += ': ' + page.year; } } else if (is_category()) {
|
||||||
|
title = page.category; } else if (is_tag()) { title = __('tag') + ': ' +
|
||||||
|
page.tag; } %> <% if (page.keywords){ %>
|
||||||
|
<meta
|
||||||
|
name="keywords"
|
||||||
|
content="<%= page.keywords %>,<%= config.keywords %>"
|
||||||
|
/>
|
||||||
|
<% } else if (config.keywords){ %>
|
||||||
|
<meta name="keywords" content="<%= config.keywords %>" />
|
||||||
|
<% } %> <% if (page.description){ %>
|
||||||
|
<meta name="description" content="<%= page.description %>" />
|
||||||
|
<% } else if (config.description){ %>
|
||||||
|
<meta name="description" content="<%= config.description %>" />
|
||||||
|
<% } %>
|
||||||
|
<meta
|
||||||
|
name="viewport"
|
||||||
|
content="width=device-width, initial-scale=1, maximum-scale=1"
|
||||||
|
/>
|
||||||
|
<title><% if (title){ %><%= title %> | <% } %> <%= config.title %></title>
|
||||||
|
<% if (theme.favicon){ %>
|
||||||
|
<link rel="shortcut icon" href="<%- theme.favicon %>" />
|
||||||
|
<% } %> <%- css('dist/main') %>
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/css/remixicon.min.css"
|
||||||
|
/>
|
||||||
|
<%- css('css/custom') %> <% if (theme.progressBar){ %>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script>
|
||||||
|
<% } %> <%- partial('google-analytics') %> <%- partial('baidu-analytics')
|
||||||
|
%>
|
||||||
|
<!-- mermaid -->
|
||||||
|
<% if (theme.mermaid.enable) { %>
|
||||||
|
<script src="<%= theme.mermaid.cdn %>"></script>
|
||||||
|
<% } %>
|
||||||
|
</head>
|
||||||
|
</html>
|
||||||
</html>
|
</html>
|
@@ -1,5 +1,5 @@
|
|||||||
<span>
|
<span>
|
||||||
<span><i class="ri-user-3-fill"></i><%- __('site_visitors') %>:<span id="busuanzi_value_site_uv"></span></s>
|
<span><i class="ri-user-3-fill"></i><%- __('site_visitors') %>:<span id="busuanzi_value_site_uv"></span></span>
|
||||||
<span class="division">|</span>
|
<span class="division">|</span>
|
||||||
<span><i class="ri-eye-fill"></i><%- __('page_views') %>:<span id="busuanzi_value_page_pv"></span></span>
|
<span><i class="ri-eye-fill"></i><%- __('page_views') %>:<span id="busuanzi_value_page_pv"></span></span>
|
||||||
</span>
|
</span>
|
@@ -1,7 +1,7 @@
|
|||||||
<% if (theme.gitalk.enable && post.comments) { %>
|
<% if (theme.gitalk.enable && post.comments) { %>
|
||||||
<div class="gitalk" id="gitalk-container"></div>
|
<div class="gitalk" id="gitalk-container"></div>
|
||||||
<%- css('https://cdn.jsdelivr.net/npm/gitalk@1.6.2/dist/gitalk.css') %>
|
<%- css('https://cdn.jsdelivr.net/npm/gitalk@1.7.2/dist/gitalk.css') %>
|
||||||
<%- js('https://cdn.jsdelivr.net/npm/gitalk@1.6.2/dist/gitalk.min.js') %>
|
<%- js('https://cdn.jsdelivr.net/npm/gitalk@1.7.2/dist/gitalk.min.js') %>
|
||||||
<%- js('https://cdn.jsdelivr.net/npm/blueimp-md5@2.10.0/js/md5.min.js') %>
|
<%- js('https://cdn.jsdelivr.net/npm/blueimp-md5@2.10.0/js/md5.min.js') %>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var gitalk = new Gitalk({
|
var gitalk = new Gitalk({
|
||||||
|
@@ -3,75 +3,45 @@
|
|||||||
<div id="mvcomments-box">
|
<div id="mvcomments-box">
|
||||||
<div id="mvcomments"></div>
|
<div id="mvcomments"></div>
|
||||||
</div>
|
</div>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/minivaline@latest"></script>
|
<script src="https://cdn.jsdelivr.net/npm/minivaline@6"></script>
|
||||||
<script>
|
<script>
|
||||||
new MiniValine(Object.assign(<%- JSON.stringify(theme.minivaline) %>, {
|
new MiniValine(Object.assign(<%- JSON.stringify(theme.minivaline) %>, {
|
||||||
el: '#mvcomments',
|
el: '#mvcomments',
|
||||||
}));
|
}));
|
||||||
const infoEle = document.querySelector('#mvcomments .info');
|
const infoEle = document.querySelector('#mvcomments .info');
|
||||||
if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
|
if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
|
||||||
infoEle.childNodes.forEach(function (item) {
|
infoEle.childNodes.forEach(function (item) {
|
||||||
item.parentNode.removeChild(item);
|
item.parentNode.removeChild(item);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
#mvcomments-box {
|
#mvcomments-box {
|
||||||
padding: 5px 30px;
|
padding: 5px 30px;
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 800px) {
|
@media screen and (max-width: 800px) {
|
||||||
#mvcomments-box {
|
#mvcomments-box {
|
||||||
padding: 5px 0px;
|
padding: 5px 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.darkmode .MiniValine *{
|
:root .darkmode {
|
||||||
color: #f1f1f1!important;
|
--ohhho-color-p: #bbb;
|
||||||
}
|
--ohhho-color-text: #fff;
|
||||||
.darkmode .commentTrigger{
|
--ohhho-color-card: #252d38;
|
||||||
background-color: #403e3e !important;
|
--ohhho-color-block: rgba(68, 68, 68, 0.65);
|
||||||
}
|
--ohhho-expand-before-background: linear-gradient(
|
||||||
.darkmode .MiniValine .vpage .more{
|
180deg,
|
||||||
background: #21232F
|
rgba(246, 246, 246, 0),
|
||||||
}
|
rgba(0, 0, 0, 0.9)
|
||||||
.darkmode img{
|
);
|
||||||
filter: brightness(30%)
|
--ohhho-expand-after-background: rgba(0, 0, 0, 0.9);
|
||||||
}
|
}
|
||||||
.darkmode .MiniValine .vlist .vcard .vcomment-body .text-wrapper .vcomment.expand:before{
|
.darkmode .ohhho pre {
|
||||||
background: linear-gradient(180deg, rgba(246,246,246,0), rgba(0,0,0,0.9))
|
background: #888;
|
||||||
}
|
border: 1px solid var(--ohhho-color-block);
|
||||||
.darkmode .MiniValine .vlist .vcard .vcomment-body .text-wrapper .vcomment.expand:after{
|
}
|
||||||
background: rgba(0,0,0,0.9)
|
.darkmode .ohhho .vlist .vcard .vcomment-body .vhead {
|
||||||
}
|
filter: brightness(85%);
|
||||||
.darkmode .MiniValine .vlist .vcard .vcomment-body .text-wrapper .vcomment pre{
|
}
|
||||||
background: #282c34
|
|
||||||
border: 1px solid #282c34
|
|
||||||
}
|
|
||||||
.darkmode .MiniValine .vinputs-area .textarea-wrapper textarea{
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
.darkmode .MiniValine .vinputs-area .auth-section .input-wrapper input{
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
.darkmode .MiniValine .vinputs-area .vextra-area .vsmile-icons{
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
.darkmode .MiniValine .vinputs-wrap{
|
|
||||||
border-color: #b2b2b5;
|
|
||||||
}
|
|
||||||
.darkmode .MiniValine .vinputs-wrap:hover{
|
|
||||||
border: 1px dashed #2196f3;
|
|
||||||
}
|
|
||||||
.darkmode .MiniValine .vinputs-area .auth-section .input-wrapper{
|
|
||||||
border-bottom: 1px dashed #b2b2b5;
|
|
||||||
}
|
|
||||||
.darkmode .MiniValine .vinputs-area .auth-section .input-wrapper:hover{
|
|
||||||
border-bottom: 1px dashed #2196f3;
|
|
||||||
}
|
|
||||||
.darkmode .MiniValine .vbtn{
|
|
||||||
background-color: transparent!important;
|
|
||||||
}
|
|
||||||
.darkmode .MiniValine .vbtn:hover{
|
|
||||||
border: 1px dashed #2196f3;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-ayer",
|
"name": "hexo-theme-ayer",
|
||||||
"version": "1.8.18",
|
"version": "1.8.22",
|
||||||
"description": "a clean and elegant theme for hexo.",
|
"description": "a clean and elegant theme for hexo.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "parcel serve source-src/main.js -d source/dist",
|
"dev": "parcel serve source-src/main.js -d source/dist",
|
||||||
|
@@ -56,12 +56,14 @@
|
|||||||
color sea
|
color sea
|
||||||
|
|
||||||
.float_btns
|
.float_btns
|
||||||
position fixed
|
position sticky
|
||||||
bottom 10rem
|
bottom 10rem
|
||||||
right 50px
|
right 50px
|
||||||
z-index 9996
|
z-index 9996
|
||||||
text-align center
|
text-align center
|
||||||
transform scale(1.2)
|
transform scale(1.2)
|
||||||
|
width: 50px
|
||||||
|
float: right
|
||||||
|
|
||||||
#mask
|
#mask
|
||||||
position fixed
|
position fixed
|
||||||
|
@@ -14,6 +14,13 @@
|
|||||||
opacity .8
|
opacity .8
|
||||||
background-color body-color
|
background-color body-color
|
||||||
&.nav-main
|
&.nav-main
|
||||||
|
height 60vh
|
||||||
|
overflow-y scroll
|
||||||
|
scrollbar-width none
|
||||||
|
-ms-overflow-style none
|
||||||
|
&::-webkit-scrollbar
|
||||||
|
width 0px
|
||||||
|
height 0px
|
||||||
.nav-item-link
|
.nav-item-link
|
||||||
i
|
i
|
||||||
font-size 1rem
|
font-size 1rem
|
||||||
|
2
source/dist/main.css
vendored
2
source/dist/main.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user