hexo-theme-stellar/layout/_partial/plugins/comments/utterances/layout.ejs

23 lines
757 B
Plaintext
Raw Normal View History

2021-02-21 23:20:13 +08:00
<%
function layoutDiv() {
2021-07-23 12:10:24 +08:00
var el = '';
2022-11-14 00:28:48 +08:00
const cmt = page.cmt;
if (cmt && cmt.service && (cmt.service.length > 0)) {
const name = cmt.service;
const body = cmt[name];
el += '<div id="' + name + '"';
for (let key of Object.keys(body)) {
if (body[key] !== null) {
el += ' ' + key + '="' + body[key] + '"';
}
2021-02-21 23:20:13 +08:00
}
2022-11-14 00:28:48 +08:00
el += '></div>';
2021-02-21 23:20:13 +08:00
}
return el;
}
%>
2021-02-23 21:09:49 +08:00
<svg class="loading" style="vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2709"><path d="M832 512c0-176-144-320-320-320V128c211.2 0 384 172.8 384 384h-64zM192 512c0 176 144 320 320 320v64C300.8 896 128 723.2 128 512h64z" p-id="2710"></path></svg>
2021-02-21 23:20:13 +08:00
<%- layoutDiv() %>