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 = '';
|
|
|
|
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() %>
|