Skip to content

Commit

Permalink
add sidebar to single post layout
Browse files Browse the repository at this point in the history
  • Loading branch information
lchski committed Dec 20, 2018
1 parent a5ba5ce commit 6d20799
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@
{% endif %}

{% case sidebar_type %}
{% when 'post' %}
{% when 'post-index' %}
{% include aside-links.html %}
{% include aside-newsletter.html %}
{% include aside-blogroll.html %}
{% include aside-rss-study.html %}
{% when 'post' %}
{% include aside-links.html %}
{% include aside-blogroll.html %}
{% include aside-rss-study.html %}
{% when 'link' %}
{% include aside-rss-links.html %}
{% when 'newsletter-index' %}
Expand Down
2 changes: 2 additions & 0 deletions _layouts/study--post.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
layout: study
site_section: study
include_sidebar: true
sidebar_type: post
---

<article class="post">
Expand Down
2 changes: 1 addition & 1 deletion study/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: study
title: Study (The Cherkewski View)
include_sidebar: true
sidebar_type: post
sidebar_type: post-index
---

<header>
Expand Down

0 comments on commit 6d20799

Please sign in to comment.