Skip to content

Commit eb627ca

Browse files
committed
docs: Order by Lastmod
1 parent 10af906 commit eb627ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/content/templates/list.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,15 @@ your list templates:
187187
<div class="meta">{{ .PublishDate.Format "Mon, Jan 2, 2006" }}</div>
188188
</li>
189189
{{ end }}
190+
191+
### Order by Lastmod
192+
193+
{{ range .Data.Pages.ByLastmod }}
194+
<li>
195+
<a href="{{ .Permalink }}">{{ .Title }}</a>
196+
<div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
197+
</li>
198+
{{ end }}
190199

191200
### Order by Length
192201

0 commit comments

Comments
 (0)