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

21 lines
658 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 += '<footer class="page-footer fs12"><hr><div>';
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></footer>';
return wrapper;
}
%>
<%- layoutDiv() %>