Skip to content

Commit 42c3175

Browse files
Sort spec list by number (#586)
1 parent b4a85dc commit 42c3175

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

layouts/partials/specs/project_meta.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<h2>Endorsed SPECs</h1>
2020
{{- $specs := where $.Site.Pages "Section" "specs" -}}
2121
<ul class="endorsed-specs-list">
22-
{{- range $specs -}}
22+
{{- range ($specs.ByParam "number") -}}
2323
{{- if not (in (lower .Title) "meta") -}}
2424
{{- if in ( index .Params "endorsed-by" ) $root.File.BaseFileName }}
2525
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>

layouts/partials/specs/spec_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</td>
88
</tr>
99
</thead>
10-
{{- range $.Paginator.Pages.ByTitle }}
10+
{{- range ($.Paginator.Pages.ByParam "number") }}
1111
{{- if and (hasPrefix .Title "SPEC") (in .Title "—") }}
1212
<tr class="spec">
1313
<td class="spec__title">

0 commit comments

Comments
 (0)