From 8385a966982d76ac0bcec5892272ddf7d0901113 Mon Sep 17 00:00:00 2001 From: agusmakmun <summon.agus@gmail.com> Date: Tue, 19 Apr 2016 17:04:04 +0700 Subject: [PATCH] Update next previous post --- _layouts/post.html | 9 +++++++++ css/main.css | 19 ++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/_layouts/post.html b/_layouts/post.html index 8972cb0..ae3d574 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -40,6 +40,15 @@ layout: default </div> {% endif %} +<div class="PageNavigation"> + {% if page.previous.url %} + <a class="prev" href="{{ page.previous.url }}">« {{ page.previous.title }}</a> + {% endif %} + {% if page.next.url %} + <a class="next" href="{{ page.next.url }}">{{ page.next.title }} »</a> + {% endif %} +</div> + <div class="disqus-comments"> <div id="disqus_thread"></div> diff --git a/css/main.css b/css/main.css index 29ea63d..58ebdca 100755 --- a/css/main.css +++ b/css/main.css @@ -94,7 +94,7 @@ div.content { div.content pre { background: #333333; - padding: 5px; + padding: 10px; color: #FFF; overflow-x: auto; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; @@ -172,3 +172,20 @@ div.col-sm-3 img#about { margin-left: auto; margin-right: auto; } +.PageNavigation { + font-size: 14px; + display: block; + width: auto; + overflow: hidden; +} + +.PageNavigation a { + display: block; + width: 50%; + float: left; + margin: 1em 0; +} + +.PageNavigation .next { + text-align: right; +} -- GitLab