From 1a7698634af671237dc4bf2bbadd9896b8571bd9 Mon Sep 17 00:00:00 2001 From: yann64 Date: Mon, 12 Oct 2026 08:21:54 +0200 Subject: [PATCH] Companies page: group manufacturers by letter Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ --- layouts/_partials/page-list.html | 10 +++++++++- layouts/companies/section.html | 6 +----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/layouts/_partials/page-list.html b/layouts/_partials/page-list.html index 336c129c..37f7cf1c 100644 --- a/layouts/_partials/page-list.html +++ b/layouts/_partials/page-list.html @@ -1,4 +1,11 @@ -{{/* table of pages: machines get company/year/type columns */}} +{{/* table of pages: machines get company/year/type columns; companies are a plain list */}} +{{ if eq (index . 0).Section "companies" }} + +{{ else }} {{ range . }} @@ -11,3 +18,4 @@ {{ end }}
+{{ end }} diff --git a/layouts/companies/section.html b/layouts/companies/section.html index 66ef787d..eb54b2c3 100644 --- a/layouts/companies/section.html +++ b/layouts/companies/section.html @@ -1,9 +1,5 @@ {{ define "main" }}

{{ .Title }}

{{ len .RegularPages }} manufacturers.

- +{{ partial "letters.html" (.RegularPages.ByTitle) }} {{ end }}