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:
@@ -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,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 }}
|
||||
|
||||
Reference in New Issue
Block a user