diff options
Diffstat (limited to '_layouts/post.html')
-rw-r--r-- | _layouts/post.html | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index dbf623d..9195f13 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,6 +1,6 @@ --- layout: framework -banner: 'default' +banner: banner_html: post-header.html sidebar: - article-menu @@ -21,18 +21,28 @@ sidebar: <div class="post-nav"> {%- if page.previous -%} - <a href="{{ page.previous.url }}" title="{{ page.previous.title | escape }}">« Prev</a> + <a class="previous" href="{{ page.previous.url }}" title="{{ page.previous.title | escape }}">{{ page.previous.title | escape }}</a> {%- else -%} <span></span> {%- endif -%} {%- if page.next -%} - <a href="{{ page.next.url }}" title="{{ page.next.title | escape }}">Next »</a> + <a class="next" href="{{ page.next.url }}" title="{{ page.next.title | escape }}">{{ page.next.title | escape }}</a> {%- else -%} <span></span> {%- endif -%} </div> + <div class="post-related"> + <div>Related Articles</div> + <ul> + {% assign posts = site[page.collection] | sample:4 %} + {%- for post in posts -%} + <li><a class="post-link" href="{{post.url}}">{{post.title}}</a></li> + {%- endfor -%} + </ul> + </div> + {%- if page.comments != false -%} {%- if site.disqus.shortname -%} |