diff --git a/components/expand-data.js b/components/expand-data.js index 9f3aa46..12dfde1 100644 --- a/components/expand-data.js +++ b/components/expand-data.js @@ -1,5 +1,7 @@ export default function(dom, data) { + data.authors = data.authors || []; + // paths //data.distillPath = post.distillPath; //data.githubPath = post.githubPath; diff --git a/components/meta.js b/components/meta.js index 8ce9753..891c17b 100644 --- a/components/meta.js +++ b/components/meta.js @@ -48,14 +48,18 @@ export default function(dom, data) { - - - - `); - data.authors.forEach((a) => { + if (data.journal) { + appendHtml(head, ` + + + + + `); + } + (data.authors || []).forEach((a) => { appendHtml(head, `