diff --git a/_config.yml b/_config.yml index 442c09b1b04b3a0d5a04aa32d32be2a8b5026155..09d53375572b7023d591617a2c38e439e4b7c32b 100644 --- a/_config.yml +++ b/_config.yml @@ -7,3 +7,5 @@ urls: - text: github url: https://github.com/agusmakmun baseurl: '/agusmakmun.github.io' +paginate: 1 +paginate_path: "/page:num/" diff --git a/css/main.css b/css/main.css index 335c092cd889f7f405c687ddb2d18b19629f5882..9c598b490264335a87cb05261616eeeeca388a5d 100755 --- a/css/main.css +++ b/css/main.css @@ -39,14 +39,12 @@ h2 { font-weight: normal; margin-bottom: 5px; color: #666666; - border-bottom: 1px solid #E6E6E6; } h3 { font-weight: normal; margin-bottom: 5px; color: #666666; - text-decoration: underline; } a, a:link, a:active { diff --git a/index.html b/index.html index 1fb60e58e726edcd8a2aed43666bdb4cc5eda66e..129c2c01788ac68842c5e2ecae1b3e29b0e480e7 100644 --- a/index.html +++ b/index.html @@ -3,10 +3,25 @@ layout: default --- <div id="home"> - <h1>Our Stack Problems</h1> - <ol class="posts"> + <h1>Our Stack Problems</h1> + <ol class="posts"> {% for post in site.posts %} <li><span>{{ post.date | date_to_string }}</span> » <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li> {% endfor %} - </ol> -</div> + </ol> + + <!-- Pagination links --> + <div class="pagination"> + {% if paginator.previous_page %} + <a href="{{ paginator.previous_page_path }}" class="previous">Previous</a> + {% else %} + <span class="previous">Previous</span> + {% endif %} + <span class="page_number ">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span> + {% if paginator.next_page %} + <a href="{{ paginator.next_page_path }}" class="next">Next</a> + {% else %} + <span class="next">Next</span> + {% endif %} + </div> +</div><!-- end #home -->