fix reference disappearing for distill blog in absence of author (#1804)

This commit is contained in:
Yifan Jiang 2023-10-08 17:15:01 +01:00 committed by GitHub
parent 8e6f5daafe
commit a21bd492bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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 -%}

View File

@ -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!');
}