mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 12:16:55 +00:00
maintenance: Fix page list selection
And adjust date format.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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>
|
||||||
|
|||||||
Reference in new issue
Block a user