diff --git a/index.ts b/index.ts index a04293d..123cd5d 100644 --- a/index.ts +++ b/index.ts @@ -29,6 +29,7 @@ interface RFC { filename: string; html: string; git: RFCGitInfo; + authors: string[] | null; // parsed from markdown frontmatter, overrides git author } interface ProposedRFC { @@ -151,7 +152,9 @@ function indexPage( const dateStr = rfc.git.accepted ? formatDate(rfc.git.accepted.date) : ""; let authorHTML = ""; - if (rfc.git.author && rfc.git.accepted) { + if (rfc.authors) { + authorHTML = ``; + } else if (rfc.git.author && rfc.git.accepted) { const commitUrl = repoUrl ? `${repoUrl}/commit/${rfc.git.accepted.hash}` : `https://github.com/${rfc.git.author.login}`; @@ -235,9 +238,14 @@ function rfcPage( Accepted `; - if (rfc.git.accepted || rfc.git.author) { + if (rfc.git.accepted || rfc.git.author || rfc.authors) { // Author section - if (rfc.git.author) { + if (rfc.authors) { + gitHeader += ` +
`; + } else if (rfc.git.author) { gitHeader += `