From 464c09ff6bb878df824a62d4c16822690c267a65 Mon Sep 17 00:00:00 2001 From: DONG Date: Sun, 17 Jul 2016 21:29:58 +0200 Subject: [PATCH] #8 Possible to hide post directory on certain posts --- _layouts/post.html | 10 ++++++++++ _posts/2016-05-14-Example-No-Sidebar-Nav.markdown | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 _posts/2016-05-14-Example-No-Sidebar-Nav.markdown diff --git a/_layouts/post.html b/_layouts/post.html index c7c3efdb8ff90..84e677e743ea6 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -7,6 +7,15 @@
+ {% if page.no-post-nav %} +
+ + {{ content }} + + + {% include disqus-comments.html %} +
+ {% else %}
{{ content }} @@ -18,6 +27,7 @@
{% include sidebar-post-nav.html %}
+ {% endif %}
diff --git a/_posts/2016-05-14-Example-No-Sidebar-Nav.markdown b/_posts/2016-05-14-Example-No-Sidebar-Nav.markdown new file mode 100644 index 0000000000000..ff80d3e57bda8 --- /dev/null +++ b/_posts/2016-05-14-Example-No-Sidebar-Nav.markdown @@ -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 \ No newline at end of file