From ee223f8cc3de5fad0ef0f217cce299c1434f1731 Mon Sep 17 00:00:00 2001 From: agusmakmun <summon.agus@gmail.com> Date: Tue, 19 Apr 2016 01:41:21 +0700 Subject: [PATCH] Update Style 6 --- _config.yml | 2 ++ css/main.css | 2 -- index.html | 23 +++++++++++++++++++---- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/_config.yml b/_config.yml index 442c09b..09d5337 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 335c092..9c598b4 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 1fb60e5..129c2c0 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 --> -- GitLab