mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 13:16:50 -04:00
maintenance: Fix page list selection
And adjust date format.
This commit is contained in:
parent
ba51fe66dd
commit
29e86396b0
@ -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 }}
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user