Skip to content

Commit fc70a70

Browse files
committed
add feat: equal contribution highlight with asterisk *
1 parent 4d855db commit fc70a70

5 files changed

Lines changed: 27 additions & 19 deletions

File tree

content/papers/2026/2026-dpcbf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ date: 2026-01-01
55
image: /images/2026-dpcbf.gif
66
venue: "under review"
77
authors:
8-
- hunkukpark
9-
- taekyungkim
8+
- hunkukpark*
9+
- taekyungkim*
1010
- dimitrapanagou
1111
projectpage: https://www.taekyung.me/dpcbf
1212
arxiv: https://arxiv.org/abs/2510.01402

layouts/papers/single.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ <h3>Abstract</h3>
2525
<h2>Authors</h2>
2626
<div class="row row-cols-2 row-cols-md-4 my-3 g4">
2727
{{ range .Params.authors }}
28-
<!-- construct url to search for -->
29-
{{ $url := printf "/people/%s" . }}
28+
{{ $raw := . }}
29+
{{ $slug := $raw }}
30+
{{ if hasSuffix $raw "*" }}
31+
{{ $slug = substr $raw 0 (sub (len $raw) 1) }}
32+
{{ end }}
33+
{{ $url := printf "/people/%s" $slug }}
3034

31-
<!-- check if the url exists -->
3235
{{ $authorPage := $.Site.GetPage $url }}
33-
<!-- if it does, create a link, else just print the name -->
3436
{{ if $authorPage }}
3537
<div class="row">
3638
{{ partial "person-card" $authorPage }}

layouts/partials/paper-card.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,21 @@
1717
<!-- AUTHOR LIST -->
1818
<div class="author-list">
1919
{{ range .Params.authors }}
20-
<!-- construct url to search for -->
21-
{{ $url := printf "/people/%s" . }}
20+
{{ $raw := . }}
21+
{{ $hasStar := hasSuffix $raw "*" }}
22+
{{ $slug := $raw }}
23+
{{ if $hasStar }}
24+
{{ $slug = substr $raw 0 (sub (len $raw) 1) }}
25+
{{ end }}
26+
{{ $url := printf "/people/%s" $slug }}
2227

23-
<!-- check if the url exists -->
2428
{{ $authorPage := $.Site.GetPage $url }}
2529

26-
<!-- if it does, create a link, else just print the name -->
2730
<span class="author-list-item">
2831
{{ if $authorPage }}
29-
<a class="author-list-link" href="{{ $url }}">{{ $authorPage.Title }}</a>
32+
<a class="author-list-link" href="{{ $url }}">{{ if $hasStar }}{{ $authorPage.Title }}*{{ else }}{{ $authorPage.Title }}{{ end }}</a>
3033
{{ else }}
31-
{{ . }}
34+
{{ if $hasStar }}{{ $slug }}*{{ else }}{{ $slug }}{{ end }}
3235
{{ end }}
3336
</span>
3437
{{ end }}

layouts/partials/small-paper-list-item.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@
44
<!-- AUTHOR LIST -->
55
<div class="author-list">
66
{{ range .Params.authors }}
7-
<!-- construct url to search for -->
8-
{{ $url := printf "/people/%s" . }}
7+
{{ $raw := . }}
8+
{{ $hasStar := hasSuffix $raw "*" }}
9+
{{ $slug := $raw }}
10+
{{ if $hasStar }}
11+
{{ $slug = substr $raw 0 (sub (len $raw) 1) }}
12+
{{ end }}
13+
{{ $url := printf "/people/%s" $slug }}
914

10-
<!-- check if the url exists -->
1115
{{ $authorPage := $.Site.GetPage $url }}
1216

13-
<!-- if it does, create a link, else just print the name -->
1417
<span class="author-list-item">
1518
{{ if $authorPage }}
16-
<a class="author-list-link" href="{{ $url }}">{{ $authorPage.Title }}</a>
19+
<a class="author-list-link" href="{{ $url }}">{{ if $hasStar }}{{ $authorPage.Title }}*{{ else }}{{ $authorPage.Title }}{{ end }}</a>
1720
{{ else }}
18-
{{ . }}
21+
{{ if $hasStar }}{{ $slug }}*{{ else }}{{ $slug }}{{ end }}
1922
{{ end }}
2023
</span>
2124
{{ end }}

layouts/people/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2>Papers</h2>
2222
{{ $papers := where .Site.RegularPages "Section" "eq" "papers" }}
2323

2424
{{ range $paper := $papers }}
25-
{{ if in $paper.Params.authors $authorname }}
25+
{{ if or (in $paper.Params.authors $authorname) (in $paper.Params.authors (printf "%s*" $authorname)) }}
2626
{{ partial "paper-card" .}}
2727
{{ end }}
2828
{{ end }}

0 commit comments

Comments
 (0)