diff --git a/_config.yml b/_config.yml index af4c1b6..88bdb66 100644 --- a/_config.yml +++ b/_config.yml @@ -1,3 +1,5 @@ name: Tyler Hallada - Blog markdown: redcarpet pygments: true +paginate: 10 +paginate_path: "blog/page:num" diff --git a/blog/index.html b/blog/index.html index 6db1eec..471d0f6 100644 --- a/blog/index.html +++ b/blog/index.html @@ -3,7 +3,7 @@ layout: default title: Tyler Hallada - Blog --- -{% for post in site.posts %} +{% for post in paginator.posts %}
@@ -25,3 +25,19 @@ title: Tyler Hallada - Blog
{% endfor %} + + diff --git a/css/main.css b/css/main.css index dc3f57f..8c96802 100755 --- a/css/main.css +++ b/css/main.css @@ -207,6 +207,11 @@ div.more-row { padding-top: 5px; } +div.pagination { + text-align: center; + margin-bottom: 10px; +} + /*****************************************************************************/ /* /* Posts