article-footer

This commit is contained in:
xaoxuu 2021-07-14 13:21:58 +08:00
parent e3706a0d22
commit aa9c2a089b
2 changed files with 17 additions and 3 deletions

View File

@ -1,9 +1,21 @@
<%
function layoutDiv() {
if (page.layout == 'wiki' && !page.references) {
return '';
var el = '';
var item = [];
if (page.references && page.references.length > 0) {
item.push('references');
}
if (page.layout !== 'wiki') {
if (theme.article.license && theme.article.license.length > 0) {
item.push('license');
}
if (theme.article.share && theme.article.share.length > 0) {
item.push('share');
}
}
if (item.length === 0) {
return el;
}
let el = '';
el += '<div class="article-footer reveal fs14">';
if (page.references && page.references.length > 0) {
el += '<section id="references">';

View File

@ -4,6 +4,8 @@
background: var(--block)
border-radius: $border-block
border: 1px solid var(--block-border)
&:empty
display: none
.header
font-weight: 500
color: var(--text-p2)