docs: Order by Lastmod
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 22 Apr 2016 18:46:04 +0000 (20:46 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 22 Apr 2016 18:46:04 +0000 (20:46 +0200)
docs/content/templates/list.md

index 6768be4c5eafb61d010938519a2287eb0b34cc48..3ce293dac42985fa6db028d014deefd3b8b75257 100644 (file)
@@ -187,6 +187,15 @@ your list templates:
     <div class="meta">{{ .PublishDate.Format "Mon, Jan 2, 2006" }}</div>
     </li>
     {{ 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