fix reference disappearing for distill blog in absence of author (#1804)
This commit is contained in:
parent
8e6f5daafe
commit
a21bd492bc
|
|
@ -66,8 +66,9 @@
|
||||||
<h1>{{ page.title }}</h1>
|
<h1>{{ page.title }}</h1>
|
||||||
<p>{{ page.description }}</p>
|
<p>{{ page.description }}</p>
|
||||||
</d-title>
|
</d-title>
|
||||||
|
{%- if page.authors -%}
|
||||||
<d-byline></d-byline>
|
<d-byline></d-byline>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
<d-article>
|
<d-article>
|
||||||
{% if page.toc -%}
|
{% if page.toc -%}
|
||||||
|
|
|
||||||
|
|
@ -1113,7 +1113,7 @@ ${math}
|
||||||
if (!byline) {
|
if (!byline) {
|
||||||
if (data.authors) {
|
if (data.authors) {
|
||||||
byline = dom.createElement('d-byline');
|
byline = dom.createElement('d-byline');
|
||||||
body.insertBefore(byline, article);
|
// body.insertBefore(byline, article);
|
||||||
} else {
|
} else {
|
||||||
console.warn('No authors found in front matter; please add them before submission!');
|
console.warn('No authors found in front matter; please add them before submission!');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue