From 76194d036c2221328226731dba849d690941a346 Mon Sep 17 00:00:00 2001 From: Akshay Kolli Date: Fri, 3 Jul 2026 10:53:14 -0700 Subject: [PATCH] Show month and year in item lists --- data/publications.yaml | 1 + layouts/partials/page-list.html | 2 +- layouts/partials/publication-list.html | 10 ++++++++-- static/css/main.css | 8 ++++++-- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/data/publications.yaml b/data/publications.yaml index 8b7ffb7..3dbcbea 100644 --- a/data/publications.yaml +++ b/data/publications.yaml @@ -1,4 +1,5 @@ - title: "Graph Attention Inference of Network Topology in Multi-Agent Systems" + date: 2024-08-27 year: 2024 authors: "Akshay Kolli, Reza Azadeh, Kshitij Jerath" venue: "IFAC-PapersOnLine 58(28), 1037-1042" diff --git a/layouts/partials/page-list.html b/layouts/partials/page-list.html index 62142c6..9860d0a 100644 --- a/layouts/partials/page-list.html +++ b/layouts/partials/page-list.html @@ -3,7 +3,7 @@ {{ range .ByWeight }} {{ $pageTitle := .Title }}
-
{{ with .Date }}{{ .Format "2006" }}{{ end }}
+
{{ with .Date }}{{ .Format "Jan 2006" }}{{ end }}
{{ $pageTitle }} diff --git a/layouts/partials/publication-list.html b/layouts/partials/publication-list.html index 81d1a7a..2b99d4f 100644 --- a/layouts/partials/publication-list.html +++ b/layouts/partials/publication-list.html @@ -1,10 +1,16 @@ {{ with . }}
- {{ range sort . "year" "desc" }} + {{ range sort . "date" "desc" }} {{ $pubTitle := .title }} {{ $authors := .authors }}
-
{{ .year }}
+
+ {{ with .date }} + {{ time.Format "Jan 2006" . }} + {{ else }} + {{ .year }} + {{ end }} +
{{ $pubTitle }}
diff --git a/static/css/main.css b/static/css/main.css index c6a3b89..132eb80 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -315,7 +315,7 @@ summary, .item-row { display: grid; - grid-template-columns: 3.25rem minmax(0, 1fr); + grid-template-columns: 4.55rem minmax(0, 1fr); gap: 0.28rem; align-items: start; min-width: 0; @@ -416,6 +416,10 @@ summary, white-space: nowrap; } +.item-year { + white-space: nowrap; +} + .post-title, .item-title { font-family: var(--display-font); @@ -1150,7 +1154,7 @@ summary, } .item-row { - grid-template-columns: 3.15rem minmax(0, 1fr); + grid-template-columns: 4.35rem minmax(0, 1fr); gap: 0.2rem; padding: 0.28rem 0.32rem; }