Skip to content

Commit 8067b9c

Browse files
compscidrclaude
andcommitted
Show citation count on research page
Display NumCitations from the scholar cache alongside year for each article. The data was already being fetched — it just wasn't shown in the templates. Shows as "N cited" when the count is non-zero. Updated all three themes (default, minimal, forest) and the legacy research.html template. Closes #513 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5021910 commit 8067b9c

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

themes/default/templates/page_research.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ <h1>{{ .page.Title }}</h1>
2222
<a href="{{.ScholarURL}}">{{.Title}}</a> <br/>
2323
{{.Authors}} <br/>
2424
</div>
25-
<div class="col">{{.Year}}</div>
25+
<div class="col-2">{{.Year}}</div>
26+
<div class="col-2">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div>
2627
</div>
2728
{{end}}
2829
</div>

themes/default/templates/research.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ <h1>Research and Publications</h1>
1717
<a href="{{.ScholarURL}}">{{.Title}}</a> <br/>
1818
{{.Authors}} <br/>
1919
</div>
20-
<div class="col">{{.Year}}</div>
20+
<div class="col-2">{{.Year}}</div>
21+
<div class="col-2">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div>
2122
</div>
2223
{{end}}
2324
</div>

themes/forest/templates/page_research.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ <h1 style="color: #1c2e1c;">{{ .page.Title }}</h1>
1616
<a href="{{.ScholarURL}}" style="color: #2d5a27;">{{.Title}}</a> <br/>
1717
<span style="color: #7a937a;">{{.Authors}}</span> <br/>
1818
</div>
19-
<div class="col" style="color: #7a937a;">{{.Year}}</div>
19+
<div class="col-2" style="color: #7a937a;">{{.Year}}</div>
20+
<div class="col-2" style="color: #7a937a;">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div>
2021
</div>
2122
{{end}}
2223
</div></div>

themes/minimal/templates/page_research.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ <h1>{{ .page.Title }}</h1>
1616
<a href="{{.ScholarURL}}">{{.Title}}</a> <br/>
1717
{{.Authors}} <br/>
1818
</div>
19-
<div class="col">{{.Year}}</div>
19+
<div class="col-2">{{.Year}}</div>
20+
<div class="col-2">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div>
2021
</div>
2122
{{end}}
2223
</div>

0 commit comments

Comments
 (0)