mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 00:16:45 +00:00
docs: Order by Lastmod
This commit is contained in:
1 parent
10af906371
commit
eb627ca16d
1 file changed
+9
@@ -188,6 +188,15 @@ your list templates:
|
|||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
### Order by Lastmod
|
||||||
|
|
||||||
|
{{ range .Data.Pages.ByLastmod }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
<div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
### Order by Length
|
### Order by Length
|
||||||
|
|
||||||
{{ range .Data.Pages.ByLength }}
|
{{ range .Data.Pages.ByLength }}
|
||||||
|
|||||||
Reference in new issue
Block a user