article-footer
This commit is contained in:
parent
e3706a0d22
commit
aa9c2a089b
|
@ -1,9 +1,21 @@
|
||||||
<%
|
<%
|
||||||
function layoutDiv() {
|
function layoutDiv() {
|
||||||
if (page.layout == 'wiki' && !page.references) {
|
var el = '';
|
||||||
return '';
|
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">';
|
el += '<div class="article-footer reveal fs14">';
|
||||||
if (page.references && page.references.length > 0) {
|
if (page.references && page.references.length > 0) {
|
||||||
el += '<section id="references">';
|
el += '<section id="references">';
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
background: var(--block)
|
background: var(--block)
|
||||||
border-radius: $border-block
|
border-radius: $border-block
|
||||||
border: 1px solid var(--block-border)
|
border: 1px solid var(--block-border)
|
||||||
|
&:empty
|
||||||
|
display: none
|
||||||
.header
|
.header
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
color: var(--text-p2)
|
color: var(--text-p2)
|
||||||
|
|
Loading…
Reference in New Issue