diff --git a/_layouts/post.html b/_layouts/post.html index bd1f93d..ed045ec 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -13,12 +13,15 @@ sidebar: {%- include functions.html func='get_value' -%} {%- assign banner = return -%} - {%- if banner == nil -%} + {%- assign result = page.hidden | where_exp: "item", "item == 'header'" -%} + {%- if banner == nil and result.size == 0 -%} {%- include views/post-header.html -%} {%- endif -%} {%- include views/article.html -%} + {%- assign result = page.hidden | where_exp: "item", "item == 'navigator'" -%} + {%- if result.size == 0 -%}
+ {%- endif -%} + {%- assign result = page.hidden | where_exp: "item", "item == 'comments'" -%} + {%- if result.size == 0 -%}