Remove the sort-by-date on the advisories/errata pages

Use the existing order from the .toml files in data/security
This resolves an issue where multiple advisories from the same
date would be sorted in an "unnatural" order.

Reported by:	emaste
Sponsored by:	Klara Inc.
This commit is contained in:
Allan Jude 2021-01-29 20:13:40 +00:00
parent ee892c779a
commit e20bb4a200
2 changed files with 6 additions and 6 deletions
website/themes/beastie/layouts/security

View file

@ -12,7 +12,7 @@
<table>
<thead>
<tr>
<th>Data</th>
<th>Date</th>
{{ if eq $.Params.security "notices" }}
<th>Errata Notice name</th>
{{ end }}
@ -24,7 +24,7 @@
<tbody>
{{ if eq $.Params.security "notices" }}
{{ with .Site.Data.security.errata }}
{{ range (sort .notices "date" "desc") }}
{{ range .notices }}
<tr>
<td class="txtdate">{{ .date }}</td>
<td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td>
@ -34,7 +34,7 @@
{{ end }}
{{ if eq $.Params.security "advisories" }}
{{ with .Site.Data.security.advisories }}
{{ range (sort .advisories "date" "desc") }}
{{ range .advisories }}
<tr>
<td class="txtdate">{{ .date }}</td>
<td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td>

View file

@ -12,7 +12,7 @@
<table>
<thead>
<tr>
<th>Data</th>
<th>Date</th>
{{ if eq $.Params.security "notices" }}
<th>Errata Notice name</th>
{{ end }}
@ -24,7 +24,7 @@
<tbody>
{{ if eq $.Params.security "notices" }}
{{ with .Site.Data.security.errata }}
{{ range (sort .notices "date" "desc") }}
{{ range .notices }}
<tr>
<td class="txtdate">{{ .date }}</td>
<td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td>
@ -34,7 +34,7 @@
{{ end }}
{{ if eq $.Params.security "advisories" }}
{{ with .Site.Data.security.advisories }}
{{ range (sort .advisories "date" "desc") }}
{{ range .advisories }}
<tr>
<td class="txtdate">{{ .date }}</td>
<td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td>