From a21bd492bc9950f86f160baea1a2e31d3cc6227d Mon Sep 17 00:00:00 2001 From: Yifan Jiang <55911052+YifanJiang233@users.noreply.github.com> Date: Sun, 8 Oct 2023 17:15:01 +0100 Subject: [PATCH] fix reference disappearing for distill blog in absence of author (#1804) --- _layouts/distill.html | 3 ++- assets/js/distillpub/template.v2.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/_layouts/distill.html b/_layouts/distill.html index bc323ce..87f3f9d 100644 --- a/_layouts/distill.html +++ b/_layouts/distill.html @@ -66,8 +66,9 @@

{{ page.title }}

{{ page.description }}

- + {%- if page.authors -%} + {%- endif -%} {% if page.toc -%} diff --git a/assets/js/distillpub/template.v2.js b/assets/js/distillpub/template.v2.js index 4ddc61f..c6cfd9f 100644 --- a/assets/js/distillpub/template.v2.js +++ b/assets/js/distillpub/template.v2.js @@ -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!'); }