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>
|
||||
<p>{{ page.description }}</p>
|
||||
</d-title>
|
||||
|
||||
{%- if page.authors -%}
|
||||
<d-byline></d-byline>
|
||||
{%- endif -%}
|
||||
|
||||
<d-article>
|
||||
{% if page.toc -%}
|
||||
|
|
|
|||
|
|
@ -1113,7 +1113,7 @@ ${math}
|
|||
if (!byline) {
|
||||
if (data.authors) {
|
||||
byline = dom.createElement('d-byline');
|
||||
body.insertBefore(byline, article);
|
||||
// body.insertBefore(byline, article);
|
||||
} else {
|
||||
console.warn('No authors found in front matter; please add them before submission!');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue