From 8067b9cf31f3a1878c3948458db759d164bc3221 Mon Sep 17 00:00:00 2001 From: Jason Ernst Date: Mon, 16 Mar 2026 21:37:41 -0700 Subject: [PATCH] Show citation count on research page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- themes/default/templates/page_research.html | 3 ++- themes/default/templates/research.html | 3 ++- themes/forest/templates/page_research.html | 3 ++- themes/minimal/templates/page_research.html | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/themes/default/templates/page_research.html b/themes/default/templates/page_research.html index f998526..de66249 100644 --- a/themes/default/templates/page_research.html +++ b/themes/default/templates/page_research.html @@ -22,7 +22,8 @@

{{ .page.Title }}

{{.Title}}
{{.Authors}}
-
{{.Year}}
+
{{.Year}}
+
{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}
{{end}} diff --git a/themes/default/templates/research.html b/themes/default/templates/research.html index 0292b55..a66dee2 100644 --- a/themes/default/templates/research.html +++ b/themes/default/templates/research.html @@ -17,7 +17,8 @@

Research and Publications

{{.Title}}
{{.Authors}}
-
{{.Year}}
+
{{.Year}}
+
{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}
{{end}} diff --git a/themes/forest/templates/page_research.html b/themes/forest/templates/page_research.html index ca191f1..cd84296 100644 --- a/themes/forest/templates/page_research.html +++ b/themes/forest/templates/page_research.html @@ -16,7 +16,8 @@

{{ .page.Title }}

{{.Title}}
{{.Authors}}
-
{{.Year}}
+
{{.Year}}
+
{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}
{{end}} diff --git a/themes/minimal/templates/page_research.html b/themes/minimal/templates/page_research.html index 90e874d..040e799 100644 --- a/themes/minimal/templates/page_research.html +++ b/themes/minimal/templates/page_research.html @@ -16,7 +16,8 @@

{{ .page.Title }}

{{.Title}}
{{.Authors}}
-
{{.Year}}
+
{{.Year}}
+
{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}
{{end}}