parent
18637d2629
commit
7cc68beb03
22 changed files with 382 additions and 297 deletions
@ -1,3 +1,20 @@ |
|||||||
<% (config.materialx && config.materialx.widgets && (config.materialx.widgets||[]) || (theme.materialx.widgets||[])).forEach(function(name){ %> |
<% if (config.widgets){ %> |
||||||
<%- partial('../_widget/'+name) %> |
<% if (config.widgets.author){ %> |
||||||
<% }) %> |
<%- partial('../_widget/author') %> |
||||||
|
<% } %> |
||||||
|
<% if (config.widgets.categories){ %> |
||||||
|
<%- partial('../_widget/categories') %> |
||||||
|
<% } %> |
||||||
|
<% if (config.widgets.tagcloud){ %> |
||||||
|
<%- partial('../_widget/tagcloud') %> |
||||||
|
<% } %> |
||||||
|
<% if (config.widgets.musicid){ %> |
||||||
|
<%- partial('../_widget/music') %> |
||||||
|
<% } %> |
||||||
|
<% if (config.widgets.links){ %> |
||||||
|
<%- partial('../_widget/links') %> |
||||||
|
<% } %> |
||||||
|
<% if (config.widgets.toc){ %> |
||||||
|
<%- partial('../_widget/toc') %> |
||||||
|
<% } %> |
||||||
|
<% } %> |
||||||
|
@ -1,33 +0,0 @@ |
|||||||
<section class='m_widget about'> |
|
||||||
<div class='header'> |
|
||||||
<% if(config.avatar) { %> |
|
||||||
<img class='avatar' src='<%= url_for(config.avatar) %>' /> |
|
||||||
<% } else { %> |
|
||||||
<img class='avatar waves-image' src='https://xaoxuu.com/assets/img/avatar.jpg' /> |
|
||||||
<%} %> |
|
||||||
</div> |
|
||||||
<div class='content'> |
|
||||||
<% if (config.materialx && (config.materialx.widgets_about.title)){ %> |
|
||||||
<h2><%= config.materialx.widgets_about.title %></h2> |
|
||||||
<% } %> |
|
||||||
<div> |
|
||||||
<i class="fa fa-quote-left fa-3x fa-pull-left" aria-hidden="true"></i> |
|
||||||
<% if (config.materialx && (config.materialx.widgets_about.motto)){ %> |
|
||||||
<%= config.materialx.widgets_about.motto %> |
|
||||||
<% } %> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<% if (config.materialx && config.materialx.widgets_about.social){ %> |
|
||||||
<div class="social-wrapper"> |
|
||||||
<% (config.materialx && config.materialx.footer_social && (config.materialx.footer_social||[]) || (theme.materialx.footer_social||[])).forEach(function(value){ %> |
|
||||||
<% if (value.url && value.slug) { %> |
|
||||||
<a href="<%= value.url %>" class="social <%= value.slug %>" |
|
||||||
target="_blank" rel="external"> |
|
||||||
<i class="fa fa-<%= value.slug %> fa-fw"></i> |
|
||||||
</a> |
|
||||||
<%}%> |
|
||||||
<%})%> |
|
||||||
</div> |
|
||||||
<% } %> |
|
||||||
|
|
||||||
</section> |
|
@ -0,0 +1,29 @@ |
|||||||
|
<% if(config.widgets.author.enable != false) { %> |
||||||
|
<section class='m_widget author'> |
||||||
|
<% if(config.widgets.author.avatar || config.avatar) { %> |
||||||
|
<div class='header'> |
||||||
|
<img class='avatar' src='<%= url_for(config.widgets.author.avatar || config.avatar) %>' /> |
||||||
|
</div> |
||||||
|
<%} %> |
||||||
|
<div class='content'> |
||||||
|
<% if (config.widgets.author.title){ %> |
||||||
|
<h2><%= config.widgets.author.title %></h2> |
||||||
|
<% } %> |
||||||
|
<% if (config.widgets.author.motto){ %> |
||||||
|
<div> |
||||||
|
<i class="fa fa-quote-left fa-3x fa-pull-left" aria-hidden="true"></i> |
||||||
|
<%= config.widgets.author.motto %> |
||||||
|
</div> |
||||||
|
<% } %> |
||||||
|
</div> |
||||||
|
<% if (config.widgets.author.social){ %> |
||||||
|
<div class="social-wrapper"> |
||||||
|
<% (config.social||[]).forEach(function(value){ %> |
||||||
|
<% if (value.url && value.icon) { %> |
||||||
|
<a href="<%= value.url %>" class="social flat-box" target="_blank" rel="external"><i class="social fa <%= value.icon %>" aria-hidden="true"></i></a> |
||||||
|
<%}%> |
||||||
|
<%})%> |
||||||
|
</div> |
||||||
|
<% } %> |
||||||
|
</section> |
||||||
|
<% } %> |
@ -1,13 +0,0 @@ |
|||||||
<section class='m_widget contacts'> |
|
||||||
<div class='header'><i class="fa fa-id-card fa-fw" aria-hidden="true"></i> 联系</div> |
|
||||||
<div class='content'> |
|
||||||
<ul class="entry"> |
|
||||||
<% ((config.materialx && (config.materialx.widgets_contacts||[])) || (theme.materialx.widgets_contacts||[])).forEach(function(item){ %> |
|
||||||
<li><a class="flat-box" target="_blank" rel="external nofollow noopener noreferrer" href="<%= url_for(item.url) %>"> |
|
||||||
<div class='name'><%= item.name %></div> |
|
||||||
<div class='badge'><%= item.desc %></div> |
|
||||||
</a></li> |
|
||||||
<% }) %> |
|
||||||
</ul> |
|
||||||
</div> |
|
||||||
</section> |
|
@ -1,8 +1,6 @@ |
|||||||
<% if (config.materialx && config.materialx.widgets_musicid){ %> |
<section class='m_widget music'> |
||||||
<section class='m_widget music'> |
|
||||||
<div class='header'><i class="fa fa-music fa-fw" aria-hidden="true"></i> 音乐</div> |
<div class='header'><i class="fa fa-music fa-fw" aria-hidden="true"></i> 音乐</div> |
||||||
<div class='content'> |
<div class='content'> |
||||||
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=100% height=450 src="//music.163.com/outchain/player?type=0&id=<%= config.materialx.widgets_musicid %>&auto=0&height=450"></iframe> |
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=100% height=450 src="//music.163.com/outchain/player?type=0&id=<%= config.widgets.musicid %>&auto=0&height=450"></iframe> |
||||||
</div> |
</div> |
||||||
</section> |
</section> |
||||||
<% } %> |
|
||||||
|
Loading…
Reference in new issue