summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_config.yml.example3
-rw-r--r--_site_build/index.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/_config.yml.example b/_config.yml.example
index b457be3..89bd20f 100644
--- a/_config.yml.example
+++ b/_config.yml.example
@@ -18,7 +18,8 @@ author:
#twitter:
# Git hub name.
#github:
-
+# Controls the number of recent posts shown on the main index page.
+max_recent_posts: 10
# ***************************
diff --git a/_site_build/index.html b/_site_build/index.html
index 98b8e02..c454726 100644
--- a/_site_build/index.html
+++ b/_site_build/index.html
@@ -3,7 +3,7 @@ layout: default
title: Home
---
<section id="excerpts">
-{% for post in site.posts %}
+{% for post in site.posts limit:site.max_recent_posts %}
{% include post_excerpt.html %}
{% endfor %}
</section>