Skip to content

Commit

Permalink
barryclark#8 Possible to hide post directory on certain posts
Browse files Browse the repository at this point in the history
  • Loading branch information
DONGChuan committed Jul 17, 2016
1 parent 2bf659e commit 464c09f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@

<div class="row">

{% if page.no-post-nav %}
<div class="col-md-12 markdown-body">

{{ content }}

<!-- Comments -->
{% include disqus-comments.html %}
</div>
{% else %}
<div class="col-md-8 markdown-body">

{{ content }}
Expand All @@ -18,6 +27,7 @@
<div class="col-md-4">
{% include sidebar-post-nav.html %}
</div>
{% endif %}

</div>

Expand Down
11 changes: 11 additions & 0 deletions _posts/2016-05-14-Example-No-Sidebar-Nav.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: post
title: "Welcome to Jekyll!"
date: 2016-05-13 13:25:35 +0200
categories: jekyll update
no-post-nav: true
---

This is post no right side bar to nav posts.

You just need to set **no-post-nav: true** for your post

0 comments on commit 464c09f

Please sign in to comment.