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

23 lines
757 B
Plaintext

<%
function layoutDiv() {
var el = '';
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] + '"';
}
}
el += '></div>';
}
return el;
}
%>
<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>
<%- layoutDiv() %>