article-footer
This commit is contained in:
parent
e3706a0d22
commit
aa9c2a089b
|
@ -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">';
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue