xaoxuu 5 years ago
parent de1e784333
commit f26e3e7658
  1. 20
      _config.yml
  2. 8
      layout/_cover/search.ejs
  3. 18
      layout/_partial/footer.ejs
  4. 19
      layout/_partial/header.ejs
  5. 6
      layout/_widget/author.ejs
  6. 8
      layout/_widget/grid.ejs
  7. 9
      layout/_widget/header.ejs
  8. 9
      layout/_widget/list.ejs
  9. 2
      layout/links.ejs

@ -38,10 +38,10 @@ music:
autoplay: false # 自动播放
# 友链页头像占位图
loading_img: https://cdn.jsdelivr.net/gh/xaoxuu/assets@master/avatar/avatar.png
avatar_placeholder: https://cdn.jsdelivr.net/gh/xaoxuu/assets@master/avatar/avatar.png
# 日期格式 http://momentjs.com/docs/
date_format: 'll' # 文章发布日期的格式
date_format: 'YYYY-MM-DD' # 文章发布日期的格式
updated_date_format: 'llll' # 文章更新日期的格式
@ -64,9 +64,11 @@ cover:
- name: 归档
icon: fas fa-archive
url: blog/archives/
rel: nofollow
- name: 关于
icon: fas fa-info-circle
url: about/
rel: nofollow
# 桌面端导航栏菜单
@ -80,6 +82,7 @@ menu_desktop:
- name: Life
icon: fas fa-coffee
url: blog/categories/life/
rel: nofollow
# 手机端导航菜单(从右上角的按钮点击展开)
menu_mobile:
@ -89,18 +92,22 @@ menu_mobile:
- name: 文章归档
icon: fas fa-archive
url: blog/archives/
rel: nofollow
- name: 开源项目
icon: fas fa-code-branch
url: projects/
- name: 歌单分享
icon: fas fa-compact-disc
url: music/
rel: nofollow
- name: 我的友链
icon: fas fa-link
url: friends/
rel: nofollow
- name: 关于小站
icon: fas fa-info-circle
url: about/
rel: nofollow
# 默认的meta信息,文章中没有配置则按照这里的配置来显示,设置为false则不显示
# 其中,title只在top中有效,music和thumbnail无需在这里设置,文章中有则显示
@ -126,30 +133,37 @@ sidebar:
- name: 文章归档
icon: fas fa-archive
url: blog/archives/
rel: nofollow
- name: 开源项目
icon: fas fa-code-branch
url: projects/
- name: Wiki文档
icon: fas fa-book
url: wiki/
rel: nofollow
- name: 歌单分享
icon: fas fa-compact-disc
url: music/
rel: nofollow
- name: 我的友链
icon: fas fa-link
url: friends/
rel: nofollow
- name: 关于小站
icon: fas fa-info-circle
url: about/
rel: nofollow
- widget: category
more:
icon: fas fa-expand-arrows-alt
url: blog/categories/
rel: nofollow
- widget: tagcloud
icon: fas fa-fire
more:
icon: fas fa-expand-arrows-alt
url: blog/tags/
rel: nofollow
- widget: related_posts # 需要安装插件 npm i -S hexo-related-popular-posts
- widget: music
icon: fas fa-compact-disc
@ -157,6 +171,8 @@ sidebar:
more:
icon: far fa-heart
url: https://music.163.com/#/user/home?id=63035382
rel: external nofollow noopener noreferrer
target: _blank
server: netease # netease(网易云音乐)tencent(QQ音乐) xiami(虾米) kugou(酷狗)
type: playlist # song (单曲) album (专辑) playlist (歌单) search (搜索)
id: 2615636388 # 歌曲/专辑/歌单 ID

@ -18,7 +18,13 @@
<% (theme.cover.features || []).forEach(function(value){ %>
<li>
<a class="nav home" href="<%= url_for(value.url) %>"
id="<%= url_for(value.url).replace(/\/|%/g, "")?url_for(value.url).replace(/\/|%/g, ""):"home" %>">
<% if (value.rel) { %>
rel="<%- value.rel %>"
<% } %>
<% if (value.target) { %>
target="<%- value.target %>"
<% } %>
id="<%= url_for(value.url).replace(/\/|%/g, "")?url_for(value.url).replace(/\/|%/g, ""):"home" %>">
<i class='<%= value.icon %> fa-fw'></i>&nbsp;<%= __('navbar.'+value.name) == ('navbar.'+value.name) ? value.name : __('navbar.'+value.name) %>
</a>
</li>

@ -9,14 +9,28 @@
<div class="social-wrapper">
<% (theme.social||[]).forEach(function(value){ %>
<% if (value.url && value.icon) { %>
<a href="<%= url_for(value.url) %>" class="social <%- value.icon %> flat-btn" target="_blank" rel="external"></a>
<a href="<%= url_for(value.url) %>"
class="social <%- value.icon %> flat-btn"
target="_blank"
rel="external nofollow noopener noreferrer">
</a>
<%}%>
<%})%>
</div>
<%}%>
<br>
<div><%- markdown(__('footer.license')) %></div>
<div><%- __('footer.use') %> <a href="<%- theme.info.docs %>" target="_blank" class="codename"><%- theme.info.name %></a> <%- __('footer.theme') %><% if (theme.busuanzi == true) { %><%- __('symbol.comma') %><%- __('footer.total_views') %> <span id="busuanzi_value_site_pv"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span> <%- __('footer.times') %><% } %><%- __('symbol.period') %>
<div>
<%- __('footer.use') %>
<a href="<%- theme.info.docs %>" target="_blank" class="codename"><%- theme.info.name %></a>
<%- __('footer.theme') %>
<% if (theme.busuanzi == true) { %>
<%- __('symbol.comma') %>
<%- __('footer.total_views') %>
<span id="busuanzi_value_site_pv"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span>
<%- __('footer.times') %>
<% } %>
<%- __('symbol.period') %>
</div>
</footer>
<script>setLoadingBarProgress(80);</script>

@ -17,8 +17,14 @@
<% if (theme.menu_desktop) { %>
<% (theme.menu_desktop || []).forEach(function(value){ %>
<li>
<a id="<%= url_for(value.url).replace(/\/|%/g, "")?url_for(value.url).replace(/\/|%/g, ""):"home" %>"
class="nav flat-box" href="<%= url_for(value.url) %>">
<a class="nav flat-box" href="<%= url_for(value.url) %>"
<% if (value.rel) { %>
rel="<%- value.rel %>"
<% } %>
<% if (value.target) { %>
target="<%- value.target %>"
<% } %>
id="<%= url_for(value.url).replace(/\/|%/g, "")?url_for(value.url).replace(/\/|%/g, ""):"home" %>">
<i class='<%= value.icon %> fa-fw'></i>&nbsp;<%= __('navbar.'+value.name) == ('navbar.'+value.name) ? value.name : __('navbar.'+value.name) %>
</a>
</li>
@ -59,7 +65,14 @@
<% if (theme.menu_mobile) { %>
<% (theme.menu_mobile || []).forEach(function(value){ %>
<li>
<a id="<%= url_for(value.url).replace(/\/|%/g, "")?url_for(value.url).replace(/\/|%/g, ""):"home" %>" class="nav flat-box" href="<%= url_for(value.url) %>">
<a class="nav flat-box" href="<%= url_for(value.url) %>"
<% if (value.rel) { %>
rel="<%- value.rel %>"
<% } %>
<% if (value.target) { %>
target="<%- value.target %>"
<% } %>
id="<%= url_for(value.url).replace(/\/|%/g, "")?url_for(value.url).replace(/\/|%/g, ""):"home" %>">
<i class='<%= value.icon %> fa-fw'></i>&nbsp;<%= __('navbar.'+value.name) == ('navbar.'+value.name) ? value.name : __('navbar.'+value.name) %>
</a>
</li>

@ -23,7 +23,11 @@
<div class="social-wrapper">
<% (theme.social||[]).forEach(function(value){ %>
<% if (value.url && value.icon) { %>
<a href="<%- url_for(value.url) %>" class="social flat-btn" target="_blank" rel="external"><i class="social <%- value.icon %>" aria-hidden="true"></i></a>
<a href="<%- url_for(value.url) %>"
class="social <%- value.icon %> flat-btn"
target="_blank"
rel="external nofollow noopener noreferrer">
</a>
<%}%>
<%})%>
</div>

@ -4,8 +4,14 @@
<ul class="grid navgation">
<% (item.rows||[]).forEach(function(row){ %>
<li><a class="flat-box" title="<%- url_for(row.url) %>" href="<%- url_for(row.url) %>"
<% if (row.rel) { %>
rel="<%- row.rel %>"
<% } %>
<% if (row.target) { %>
target="<%- row.target %>"
<% } %>
id="<%= url_for(row.url).replace(/\/|%/g, "")?url_for(row.url).replace(/\/|%/g, ""):"home" %>">
<% if(row.img) { %>
<% if (row.img) { %>
<img src="<%- row.img %>">
<% } else if(row.avatar) { %>
<img src="<%- row.avatar %>" id="round">

@ -8,7 +8,14 @@
<div class='wrapper'><a class="s-toc rightBtn" rel="external nofollow noopener noreferrer" href="javascript:void(0)"><i class="fas fa-thumbtack fa-fw"></i></a></div>
<% } else if(item.more && item.more.url) { %>
<a class="rightBtn<%- item.more.animate ? ' ' + item.more.animate : '' %>"
rel="external nofollow noopener noreferrer"
<% if (item.more.rel) { %>
rel="<%- item.more.rel %>"
<% } else { %>
rel="external nofollow noopener noreferrer"
<% } %>
<% if (item.more.target) { %>
target="<%- item.more.target %>"
<% } %>
href="<%- url_for(item.more.url) %>"
title="<%- item.more.url %>">
<i class="<%- item.more.icon?item.more.icon:'fas fa-question-circle' %> fa-fw"></i></a>

@ -3,7 +3,14 @@
<div class='content <%= theme.style %>'>
<ul class="entry">
<% (item.rows||[]).forEach(function(row){ %>
<li><a class="flat-box" title="<%- url_for(row.url) %>" href="<%- url_for(row.url) %>">
<li><a class="flat-box" title="<%- url_for(row.url) %>" href="<%- url_for(row.url) %>"
<% if (row.rel) { %>
rel="<%- row.rel %>"
<% } %>
<% if (row.target) { %>
target="<%- row.target %>"
<% } %>
>
<div class='name'>
<% if(row.img) { %>
<img src="<%- row.img %>">

@ -19,7 +19,7 @@
<a class='friend-card' style='background:<%- item.backgroundColor %>; color:<%- item.textColor %>'
target="_blank" rel="external nofollow noopener noreferrer" href='<%- url_for(item.url) %>'>
<div class='friend-left'>
<img class='avatar' src='<%- theme.loading_img %>' data-echo='<%- url_for(item.avatar ? item.avatar : "https://img.vim-cn.com/a4/87a96e2e01b1180bba1e76e190df5220378c1a.png") %>'/>
<img class='avatar' src='<%- theme.avatar_placeholder %>' data-echo='<%- url_for(item.avatar ? item.avatar : "https://img.vim-cn.com/a4/87a96e2e01b1180bba1e76e190df5220378c1a.png") %>'/>
</div>
<div class='friend-right'>
<p class="friend-name"><%- item.name %></p>

Loading…
Cancel
Save