parent
ab00a4bace
commit
e051b21f6c
2 changed files with 22 additions and 17 deletions
@ -1,15 +1,17 @@ |
||||
<section class='m_widget links'> |
||||
<div class='header'><i class="fa fa-link fa-fw" 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> |
||||
<% if (config.materialx && (config.materialx.widgets_links)){ %> |
||||
<section class='m_widget links'> |
||||
<div class='header'><i class="fa fa-link fa-fw" aria-hidden="true"></i> 友链</div> |
||||
<div class='content'> |
||||
<ul class="entry" id="links"> |
||||
<% (config.materialx && (config.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> |
||||
<% } %> |
||||
|
Loading…
Reference in new issue