diff --git a/_layouts/post.html b/_layouts/post.html index 8972cb02720cfb236f8e2477acd5f4b9b7dd64fc..ae3d574c5844cd6eb125a0accdb172e4fd3ad99a 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 29ea63d8c46407517d2a0d9bc217dcc5cc0d5fc9..58ebdcae9f04bc16936471e57d1c6a11e611d6c0 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; +}