maintenance: Fix page list selection

And adjust date format.
This commit is contained in:
Bjørn Erik Pedersen 2018-02-11 14:20:55 +01:00
parent ba51fe66dd
commit 29e86396b0
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<div class="w-100 ph4 pb5 pb6-ns pt1 mt4 pt3-ns">
{{ $byLastMod := .Site.RegularPages.ByLastmod }}
{{ $recent := $byLastMod | last 10 }}
{{ $leastRecent := $byLastMod.Reverse | last 10 }}
{{ $leastRecent := $byLastMod | first 10 }}
<h2>Last Updated</h2>
{{ partial "maintenance-pages-table" $recent }}

View File

@ -9,7 +9,7 @@
<tbody>
{{ range . }}
<tr class="striped--light-gray">
<td class="pv2 ph3">{{ .Lastmod.Format "Jan, 02 2006" }}</td>
<td class="pv2 ph3">{{ .Lastmod.Format "2006-01-02" }}</td>
<td class="pv2 ph3">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</td>