hexo-theme-stellar/layout/_partial/main/footer.ejs

21 lines
616 B
Plaintext
Executable File

<%
const author = '[@' + config.author + '](' + config.url + config.root + ')';
const using = '[' + stellar_info('name') + '](' + stellar_info('tree') + ')';
const source = theme.footer.source;
function layoutDiv() {
var wrapper = '';
wrapper += '<div><hr>';
if (theme.footer.license) {
wrapper += markdown(__('footer.license', theme.footer.license));
}
if (source) {
wrapper += markdown(__('footer.info_open_source', author, using, source));
} else {
wrapper += markdown(__('footer.info_not_open_source', author, using));
}
wrapper += '</div>';
return wrapper;
}
%>
<%- layoutDiv() %>