my eye

Limit number of posts on homepage to 10

Committed b04fc8

--- a/canopy/templates/__init__.py
+++ b/canopy/templates/__init__.py

     return months
 
 
-def get_posts():
-    return posts_app.model.get_posts()
+def get_posts(**kwargs):
+    return posts_app.model.get_posts(**kwargs)
 
 
 def get_categories():

--- a/canopy/templates/index.html
+++ b/canopy/templates/index.html

   width: 100%; }
 </style>
 
-$for item in get_posts():
+$for item in get_posts(limit=10):
     $ item_type = item["type"][0]
     <section class="h-$item_type $item['visibility'][0]">
     $if item_type == "entry":