parent
c830c0acbb
commit
3f29aa7409
13 changed files with 308 additions and 191 deletions
@ -1,3 +1,3 @@ |
||||
<% (theme.widgets||[]).forEach(function(name){ %> |
||||
<% (config.materialx && config.materialx.widgets && (config.materialx.widgets||[]) || (theme.materialx.widgets||[])).forEach(function(name){ %> |
||||
<%- partial('../_widget/'+name) %> |
||||
<% }) %> |
||||
<% }) %> |
||||
|
@ -1,13 +1,13 @@ |
||||
<section class='m_widget contacts'> |
||||
<div class='header'><i class="fa fa-id-card" aria-hidden="true"></i> 联系</div> |
||||
<div class='content'> |
||||
<ul class="entry"> |
||||
<% (config.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='badget'><%= item.badget %></div> |
||||
</a></li> |
||||
<% }); %> |
||||
</ul> |
||||
</div> |
||||
<div class='header'><i class="fa fa-id-card" 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,17 +1,15 @@ |
||||
<% if (config.materialx.links){ %> |
||||
<section class='m_widget links'> |
||||
<div class='header'><i class="fa fa-link" aria-hidden="true"></i> 友链</div> |
||||
<div class='content'> |
||||
<ul class="entry" id="links"> |
||||
<% (config.materialx.links||[]).forEach(function(item){ %> |
||||
<li><a class="flat-box" target="_blank" rel="external nofollow noopener noreferrer" href="<%= url_for(item.url) %>"> |
||||
<div class='name'> |
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> |
||||
<%= item.name %> |
||||
</div> |
||||
</a></li> |
||||
<% }); %> |
||||
</ul> |
||||
</div> |
||||
</section> |
||||
<% } %> |
||||
<section class='m_widget links'> |
||||
<div class='header'><i class="fa fa-link" aria-hidden="true"></i> 友链</div> |
||||
<div class='content'> |
||||
<ul class="entry" id="links"> |
||||
<% ((config.materialx && (config.materialx.widgets_links||[])) || (theme.materialx.widgets_links||[])).forEach(function(item){ %> |
||||
<li><a class="flat-box" target="_blank" rel="external nofollow noopener noreferrer" href="<%= url_for(item.url) %>"> |
||||
<div class='name'> |
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> |
||||
<%= item.name %> |
||||
</div> |
||||
</a></li> |
||||
<% }) %> |
||||
</ul> |
||||
</div> |
||||
</section> |
||||
|
@ -1,8 +1,8 @@ |
||||
<% if (config.materialx.musicid){ %> |
||||
<% if (config.materialx && config.materialx.widgets_musicid){ %> |
||||
<section class='m_widget music'> |
||||
<div class='header'><i class="fa fa-music" aria-hidden="true"></i> 音乐</div> |
||||
<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.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.materialx.widgets_musicid %>&auto=0&height=450"></iframe> |
||||
</div> |
||||
</section> |
||||
<% } %> |
||||
|
Loading…
Reference in new issue