Companies page: group manufacturers by letter

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
This commit is contained in:
2026-10-12 08:21:54 +02:00
co-authored by Claude Opus 5.5
parent 3eeabe9649
commit 1a7698634a
2 changed files with 10 additions and 6 deletions
+9 -1
View File
@@ -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" }}
<ul class="columns">
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a> <small>({{ len .Params.machines }})</small></li>
{{ end }}
</ul>
{{ else }}
<table class="list">
<tbody>
{{ range . }}
@@ -11,3 +18,4 @@
{{ end }}
</tbody>
</table>
{{ end }}
+1 -5
View File
@@ -1,9 +1,5 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<p>{{ len .RegularPages }} manufacturers.</p>
<ul class="columns">
{{ range .RegularPages.ByTitle }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a> <small>({{ len .Params.machines }})</small></li>
{{ end }}
</ul>
{{ partial "letters.html" (.RegularPages.ByTitle) }}
{{ end }}