Skip to content

Commit

Permalink
feat: allow custom author display names
Browse files Browse the repository at this point in the history
  • Loading branch information
wodeni committed Jun 27, 2024
1 parent 129d65f commit 553a59f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const Publications = () => (
authors,
talk,
coauthors,
authorDisplayNames,
series,
slides,
id,
Expand All @@ -123,6 +124,7 @@ const Publications = () => (
<br />
<span className="text-base font-light">
{authors
.map((a, i) => authorDisplayNames?.get(i) ?? a)
.map((a) => (coauthors?.includes(a) ? `${a}*` : a))
.map((a) =>
a === "Wode Ni" || a === "Wode Ni*" ? <strong>{a}</strong> : a
Expand Down
3 changes: 3 additions & 0 deletions src/Papers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ interface PaperMeta {
talk?: string;
slides?: string;
coauthors?: string[];
// map bibtex strings to unicode strings
authorDisplayNames?: Map<number, string>;
bibtex?: string;
}
interface Papers {
Expand All @@ -34,6 +36,7 @@ const entries: Papers = {
"minkowski-2024": {
type: "conference",
pdf: new URL("/assets/siggraph-24-minkowski.pdf", import.meta.url).href,
authorDisplayNames: new Map([[0, "Jiří Minarčík"]]),
},
"stsearch-2024": {
type: "conference",
Expand Down

0 comments on commit 553a59f

Please sign in to comment.