Updating docs to include ‘first’ functionality for the homepage
authorspf13 <steve.francia@gmail.com>
Sat, 16 Nov 2013 02:45:52 +0000 (21:45 -0500)
committerspf13 <steve.francia@gmail.com>
Sat, 16 Nov 2013 02:45:52 +0000 (21:45 -0500)
docs/content/layout/homepage.md

index 3ab3112d12bda74855d7d212a2ebfd5cb8a7664d..74eb2192f467ce87418bff6607f74286bb6566c5 100644 (file)
@@ -43,7 +43,7 @@ It makes use of [chrome templates](/layout/chrome)
 
     <section id="main">
       <div>
-        {{ range .Data.Pages }}
+        {{ range first 10 .Data.Pages }}
             {{ .Render "summary"}}
         {{ end }}
       </div>