mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 23:36:06 -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">
|
<div class="w-100 ph4 pb5 pb6-ns pt1 mt4 pt3-ns">
|
||||||
{{ $byLastMod := .Site.RegularPages.ByLastmod }}
|
{{ $byLastMod := .Site.RegularPages.ByLastmod }}
|
||||||
{{ $recent := $byLastMod | last 10 }}
|
{{ $recent := $byLastMod | last 10 }}
|
||||||
{{ $leastRecent := $byLastMod.Reverse | last 10 }}
|
{{ $leastRecent := $byLastMod | first 10 }}
|
||||||
|
|
||||||
<h2>Last Updated</h2>
|
<h2>Last Updated</h2>
|
||||||
{{ partial "maintenance-pages-table" $recent }}
|
{{ partial "maintenance-pages-table" $recent }}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<tr class="striped--light-gray">
|
<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">
|
<td class="pv2 ph3">
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user