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

21 lines
658 B
Plaintext
Raw Normal View History

2021-02-21 03:13:21 +08:00
<%
2021-02-21 18:48:38 +08:00
const author = '[@' + config.author + '](' + config.url + config.root + ')';
2021-02-21 03:13:21 +08:00
const using = '[' + stellar_info('name') + '](' + stellar_info('tree') + ')';
const source = theme.footer.source;
function layoutDiv() {
var wrapper = '';
2021-03-05 21:37:28 +08:00
wrapper += '<footer class="page-footer fs12"><hr><div>';
2021-02-21 03:13:21 +08:00
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));
}
2021-03-05 21:37:28 +08:00
wrapper += '</div></footer>';
2021-02-21 03:13:21 +08:00
return wrapper;
}
%>
<%- layoutDiv() %>