From bb19b13467ca7f25723c3d1e7406ae008b9285f2 Mon Sep 17 00:00:00 2001
From: Ludwig Schubert
Date: Mon, 17 Dec 2018 13:26:33 -0800
Subject: [PATCH] Fixes #80 by switching a div tag inside a p tag to a span
tag. Thanks, humbertaco!
---
examples/article.html | 2 +-
src/components/d-byline.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/article.html b/examples/article.html
index 629e89b..e592d83 100644
--- a/examples/article.html
+++ b/examples/article.html
@@ -32,7 +32,7 @@
{
"author":"Chris Olah",
"authorURL":"https://colah.github.io/",
- "affiliations": [{"name": "Google Brain", "url": "https://g.co/brain"}]
+ "affiliations": [{"name": "Google Brain"}]
},
{
"author":"Ludwig Schubert",
diff --git a/src/components/d-byline.js b/src/components/d-byline.js
index f03f14b..4fa732c 100644
--- a/src/components/d-byline.js
+++ b/src/components/d-byline.js
@@ -24,11 +24,11 @@ export function bylineTemplate(frontMatter) {
${author.personalURL ? `
${author.name}` : `
-
${author.name}
`}
+ ${author.name}`}
${author.affiliations.map(affiliation =>
- affiliation.url ? `${affiliation.name}` : `
${affiliation.name}
`
+ affiliation.url ? `${affiliation.name}` : `${affiliation.name}`
).join(', ')}
`).join('')}