You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.9 KiB

<% if (theme.widgets){ %>
<% if (theme.widgets.author.enable){ %>
<%- partial('../_widget/author') %>
<% } %>
<% if (config.widgets){ %>
<% (config.widgets||[]).forEach(function(item){ %>
<section class='mywidget' id='<%- item.type ? item.type : '' %>'>
6 years ago
<% if(item.icon && item.title) { %>
<header class='header <%= theme.style %>'>
<div><i class="<%= item.icon %> fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;<%= item.title %></div>
6 years ago
<% if(item.more && item.more.url) { %>
6 years ago
<a class="rightBtn" target="_blank" rel="external nofollow noopener noreferrer" href="<%= url_for(item.more.url) %>">
6 years ago
<i class="<%= item.more.icon?item.more.icon:'fas fa-question-circle' %> fa-fw"></i></a>
<%} %>
</header>
6 years ago
<%} %>
<div class='content <%= theme.style %>'>
<% if(item.type == 'list') { %>
<ul class="entry">
<% (item.rows||[]).forEach(function(row){ %>
<li><a class="flat-box" href="<%= url_for(row.url) %>"><i class="<%= row.icon %> fa-fw"></i><div class='name'><%= row.name %></div></a>
<% }) %>
</ul>
<% } else { %>
<%- item.body %>
<% } %>
</div>
</section>
<% }) %>
6 years ago
<% } %>
<% if (theme.widgets.categories.enable){ %>
<%- partial('../_widget/categories') %>
<% } %>
<% if (theme.widgets.tagcloud.enable){ %>
<%- partial('../_widget/tagcloud') %>
<% } %>
<% if (theme.widgets.toc.enable){ %>
6 years ago
<%- partial('../_widget/toc') %>
<% } %>
<% if (theme.widgets.music.enable){ %>
<%- partial('../_widget/music') %>
<% } %>
<% if (theme.widgets.links.enable){ %>
<%- partial('../_widget/links') %>
<% } %>
<% } %>