hexo-theme-stellar/layout/_partial/comments/waline/layout.ejs

20 lines
384 B
Plaintext
Raw Normal View History

2022-05-18 20:25:53 +08:00
<%
function layoutDiv() {
var el = '';
el += '<div id="waline_container" class="waline_thread"';
let cfg = {};
if (page.comment_id) {
cfg['comment_id'] = page.comment_id;
}
for (let key of Object.keys(cfg)) {
if (cfg[key]) {
el += ' ' + key + '="' + cfg[key] + '"';
}
}
2024-01-19 13:51:55 +08:00
el += `>${icon('default:loading')}</div>`
2022-05-18 20:25:53 +08:00
return el;
}
%>
<%- layoutDiv() %>