hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit eb627ca16de6fb5e8646279edd295a8bf0f72bf1
parent 10af906371bedb643f67d89ec370a1236c6504fd
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Fri, 22 Apr 2016 20:46:04 +0200

docs: Order by Lastmod

Diffstat:
Mdocs/content/templates/list.md | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/docs/content/templates/list.md b/docs/content/templates/list.md
@@ -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