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('')}