diff options
-rw-r--r-- | _includes/jekyll-theme/sidebar/sep.html | 4 | ||||
-rw-r--r-- | _layouts/default.html | 4 | ||||
-rw-r--r-- | _layouts/page.html | 1 | ||||
-rw-r--r-- | _layouts/post.html | 1 |
4 files changed, 6 insertions, 4 deletions
diff --git a/_includes/jekyll-theme/sidebar/sep.html b/_includes/jekyll-theme/sidebar/sep.html new file mode 100644 index 0000000..4791028 --- /dev/null +++ b/_includes/jekyll-theme/sidebar/sep.html @@ -0,0 +1,4 @@ +{% unless site.settings.sidebar.hide or page.sidebar.hide %} + {% comment %}Separate the content from the sidebar on narrow screens.{% endcomment %} + <hr class="sidebar-sep"/> +{% endunless %} diff --git a/_layouts/default.html b/_layouts/default.html index 1f39d9f..827500e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,10 +2,6 @@ <div class="row"> <div class="col-md-8"> {{ content }} - {% unless site.settings.sidebar.hide or page.sidebar.hide %} - {% comment %}Separate the content from the sidebar on narrow screens.{% endcomment %} - <hr class="sidebar-sep"/> - {% endunless %} </div> <div class="col-md-4"> {% include jekyll-theme/sidebar.html %} diff --git a/_layouts/page.html b/_layouts/page.html index 6455acc..4a13984 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -3,3 +3,4 @@ layout: default --- {% include jekyll-theme/page/title.html %} {{ content }} +{% include jekyll-theme/sidebar/sep.html %} diff --git a/_layouts/post.html b/_layouts/post.html index 12eade5..6ac37f7 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -3,3 +3,4 @@ layout: default --- {% include jekyll-theme/posts/header.html %} {{ content }} +{% include jekyll-theme/sidebar/sep.html %} |