parent
fc723dcc11
commit
337d357969
10 changed files with 18 additions and 197 deletions
@ -1,28 +0,0 @@ |
||||
<% if(theme.widgets.author.enable != false) { %> |
||||
<section class='author'> |
||||
<% if(theme.widgets.author.avatar) { %> |
||||
<div class='header'> |
||||
<img class='avatar' src='<%= url_for(config.avatar ? config.avatar : "https://img.vim-cn.com/a4/87a96e2e01b1180bba1e76e190df5220378c1a.png") %>'/> |
||||
</div> |
||||
<%} %> |
||||
<% if (theme.widgets.author.title == true || theme.widgets.author.motto == true){ %> |
||||
<div class='content'> |
||||
<% if (theme.widgets.author.title == true){ %> |
||||
<h2><%= config.title %></h2> |
||||
<% } %> |
||||
<% if (theme.widgets.author.motto){ %> |
||||
<p><%= config.motto %></p> |
||||
<% } %> |
||||
</div> |
||||
<% } %> |
||||
<% if (theme.widgets.author.social == true && config.social){ %> |
||||
<div class="social-wrapper"> |
||||
<% (config.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> |
||||
<%}%> |
||||
<%})%> |
||||
</div> |
||||
<% } %> |
||||
</section> |
||||
<% } %> |
@ -1,14 +0,0 @@ |
||||
<section class='categories'> |
||||
<header class='header <%= theme.style %>'> |
||||
<div><i class="<%= theme.widgets.categories.icon %> fa-fw" aria-hidden="true"></i> <%= theme.widgets.categories.title %></div> |
||||
</header> |
||||
<div class='content <%= theme.style %>'> |
||||
<% if (site.categories.length){ %> |
||||
<ul class="entry"> |
||||
<% site.categories.sort('name').each(function(item){ %> |
||||
<li><a class="flat-box" href="<%= url_for(item.path) %>"><div class='name'><%= item.name %></div><div class='badge'>(共<%= item.posts.length %>篇)</div></a></li> |
||||
<% }); %> |
||||
</ul> |
||||
<% } %> |
||||
</div> |
||||
</section> |
@ -1,24 +0,0 @@ |
||||
<section class='links'> |
||||
<header class='header <%= theme.style %>'> |
||||
<div><i class="<%= theme.widgets.links.icon %> fa-fw" aria-hidden="true"></i> <%= theme.widgets.links.title %></div> |
||||
<% if(config.title && theme.widgets.links.mailto) { %> |
||||
<a class="rightBtn" title="联系博主添加友链" target="_blank" rel="external nofollow noopener noreferrer" href="mailto:<%= theme.widgets.links.mailto %>?subject=交换友链&body=你好,我想和你交换友链,我已经将【<%= config.title %>】添加到我的博客的友链中。我的博客链接是:"><i class="fas fa-plus fa-fw"></i></a> |
||||
<%} %> |
||||
</header> |
||||
<div class='content <%= theme.style %>'> |
||||
<ul class="entry" id="links"> |
||||
<% (config.links||[]).forEach(function(item){ %> |
||||
<li><a class="flat-box" title="<%= url_for(item.url) %>" target="_blank" rel="external nofollow noopener noreferrer" href="<%= url_for(item.url) %>"> |
||||
<div class='name'> |
||||
<% if(item.avatar) { %> |
||||
<img src="<%= item.avatar %>"> |
||||
<% } else { %> |
||||
<i class="fas fa-user-circle fa-fw" aria-hidden="true"></i> |
||||
<% } %> |
||||
<%= item.name %> |
||||
</div> |
||||
</a></li> |
||||
<% }) %> |
||||
</ul> |
||||
</div> |
||||
</section> |
@ -1,59 +0,0 @@ |
||||
<% |
||||
var needDisplay = false; |
||||
if (theme.widgets.music && theme.widgets.music.display) { |
||||
let display = theme.widgets.music.display; |
||||
if (page.layout == 'page') { |
||||
if (display.page != false) { |
||||
needDisplay = true; |
||||
} |
||||
} else if (page.layout == 'post') { |
||||
if (display.post != false && (!page.music || page.music.enable == false)) { |
||||
needDisplay = true; |
||||
} |
||||
} else if (page.layout == 'links') { |
||||
if (display.links != false) { |
||||
needDisplay = true; |
||||
} |
||||
} else { |
||||
if (is_home()) { |
||||
if (display.home != false) { |
||||
needDisplay = true; |
||||
} |
||||
} else if (is_tag()) { |
||||
if (display.tag != false) { |
||||
needDisplay = true; |
||||
} |
||||
} else if (is_category()) { |
||||
if (display.category != false) { |
||||
needDisplay = true; |
||||
} |
||||
} else if (is_archive()) { |
||||
if (display.archive != false) { |
||||
needDisplay = true; |
||||
} |
||||
} else { |
||||
needDisplay = true; |
||||
} |
||||
} |
||||
} |
||||
%> |
||||
|
||||
<% if (needDisplay == true) { %> |
||||
<section class='music'> |
||||
<header class='header <%= theme.style %>'> |
||||
<div><i class="<%= theme.widgets.music.icon %> fa-fw" aria-hidden="true"></i> <%= theme.widgets.music.title %></div> |
||||
<a class="rightBtn" target="_blank" rel="external nofollow noopener noreferrer" href="<%= url_for(theme.widgets.music.link) %>"><i class="far fa-heart fa-fw"></i></a> |
||||
</header> |
||||
<div class='content <%= theme.style %>'> |
||||
<div class="aplayer" data-theme="<%= theme.widgets.music.color %>" |
||||
data-mode="<%= theme.widgets.music.mode %>" |
||||
data-server="<%= theme.widgets.music.server %>" |
||||
data-type="<%= theme.widgets.music.type %>" |
||||
data-id="<%= theme.widgets.music.id %>" |
||||
data-volume="<%= theme.widgets.music.volume %>"></div> |
||||
</div> |
||||
</section> |
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.7.0/dist/APlayer.min.css"> |
||||
<script src="https://cdn.jsdelivr.net/npm/aplayer@1.7.0/dist/APlayer.min.js"></script> |
||||
<script src="https://cdn.jsdelivr.net/npm/meting@1.1.0/dist/Meting.min.js"></script> |
||||
<% } %> |
@ -1,16 +0,0 @@ |
||||
<% if (site.tags.length){ %> |
||||
<section class='tagcloud'> |
||||
<header class="header <%= theme.style %>"> |
||||
<div><i class="<%= theme.widgets.tagcloud.icon %> fa-fw" aria-hidden="true"></i> <%= theme.widgets.tagcloud.title %></div> |
||||
</header> |
||||
<div class='content <%= theme.style %>'> |
||||
<%- tagcloud(site.tags, { |
||||
min_font: 14, |
||||
max_font: 24, |
||||
color: true, |
||||
start_color: '#999', |
||||
end_color: '#555', |
||||
}) %> |
||||
</div> |
||||
</section> |
||||
<% } %> |
@ -1,11 +0,0 @@ |
||||
<% if(page.layout == 'post' && page.content && page.toc!==false && toc(page.content).length > 0){ %> |
||||
<section class='toc-wrapper'> |
||||
<header class="header <%= theme.style %>"> |
||||
<div><i class="<%= theme.widgets.toc.icon %> fa-fw" aria-hidden="true"></i> <%= theme.widgets.toc.title %></div> |
||||
<div class='wrapper'><a class="s-toc rightBtn" title="固定到顶部" rel="external nofollow noopener noreferrer" href="javascript:void(0)"><i class="fas fa-thumbtack fa-fw"></i></a></div> |
||||
</header> |
||||
<div class='content <%= theme.style %>'> |
||||
<%- toc(page.content, {list_number: false}) %> |
||||
</div> |
||||
</section> |
||||
<% } %> |
Loading…
Reference in new issue