19 lines
458 B
Plaintext
19 lines
458 B
Plaintext
<%
|
|
function layoutDiv() {
|
|
if (!item.content?.length) return ''
|
|
var el = '';
|
|
el += '<widget class="widget-wrapper markdown">';
|
|
if (item.title?.length > 0) {
|
|
el += '<div class="widget-header cap theme dis-select">';
|
|
el += '<span class="name">' + item.title + '</span>';
|
|
el += '</div>';
|
|
}
|
|
el += '<div class="widget-body fs14">';
|
|
el += markdown(item.content);
|
|
el += '</div>';
|
|
el += '</widget>';
|
|
return el;
|
|
}
|
|
%>
|
|
<%- layoutDiv() %>
|