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.
13 lines
492 B
13 lines
492 B
<% if (config.widgets && config.widgets.length){ %> |
|
<% |
|
let supportWidgets = ['author', 'category', 'list', 'music', 'tagcloud', 'toc', 'plain', 'related_posts']; |
|
%> |
|
<% config.widgets.forEach(function(item){ %> |
|
<% if (item.enable != false){ %> |
|
<% let widget_name = item.widget ? item.widget : 'plain'; %> |
|
<% if (supportWidgets.indexOf(widget_name) > -1){ %> |
|
<%- partial('../_widget/' + item.widget, {item: item}) %> |
|
<% } %> |
|
<% } %> |
|
<% }) %> |
|
<% } %>
|
|
|