socle

style: give the index subject cell its own class instead of borrowing date's

commit 240bb1d0c2e99c67734ed8e45e36f92b955b922b · parent d095c08f9a · browse this tree
Ximianth, 2026-10-26 20:09:01 UTC

diff --git a/pages.go b/pages.go
index d1acc8e..bc3b7c7 100644
--- a/pages.go
+++ b/pages.go
@@ -34,6 +34,7 @@ article table.tree tbody tr:hover, article table.log tbody tr:hover { background
 article th { text-align: left; }
 article td.size { text-align: right; color: var(--ink-soft); }
 article td.date { color: var(--ink-soft); white-space: nowrap; }
+article td.soft { color: var(--ink-soft); }
 article td.hash a { font-family: monospace; }
 article p.clone code { user-select: all; }
 article img.file { max-width: 100%; }
@@ -113,7 +114,7 @@ func repoCrumbs(name string, more ...crumbLink) []display.Crumb {
 var indexTmpl = template.Must(template.New("index").Parse(`<h1>repositories</h1>
 <table class="log">
 <tbody>
-{{range .}}<tr><td><a href="/{{.Name}}/">{{.Name}}</a></td><td>{{.Description}}</td><td class="date">{{.Head}}</td></tr>
+{{range .}}<tr><td><a href="/{{.Name}}/">{{.Name}}</a></td><td>{{.Description}}</td><td class="soft">{{.Head}}</td></tr>
 {{end}}</tbody>
 </table>
 `))
diff --git a/testdata/pages.md b/testdata/pages.md
index 6b6412d..0053254 100644
--- a/testdata/pages.md
+++ b/testdata/pages.md
@@ -40,7 +40,7 @@ socle<span class="theme">@test</span>
 <article><h1>repositories</h1>
 <table class="log">
 <tbody>
-<tr><td><a href="/fixturama/">fixturama</a></td><td>the fixture</td><td class="date">add docs and src</td></tr>
+<tr><td><a href="/fixturama/">fixturama</a></td><td>the fixture</td><td class="soft">add docs and src</td></tr>
 </tbody>
 </table>
 </article>