hexo-theme-stellar/layout/_partial/sidebar/widgets/markdown.ejs

19 lines
465 B
Plaintext
Raw Normal View History

2021-11-19 20:25:39 +08:00
<%
function layoutDiv() {
var el = '';
if (item.content == undefined || item.content.length == 0) {
return el;
}
el += '<div class="widget-wrap" id="markdown">';
el += '<div class="widget-header cap dis-select">';
el += '<span class="name">' + item.title + '</span>';
el += '</div>';
el += '<div class="widget-body fs14">';
el += markdown(item.content);
el += '</div>';
el += '</div>';
return el;
}
%>
<%- layoutDiv() %>