fix: hidden front-matter not working
This commit is contained in:
parent
625fb13e12
commit
2a02157ad6
1 changed files with 8 additions and 4 deletions
|
@ -13,14 +13,18 @@ sidebar:
|
||||||
{%- include functions.html func='get_value' -%}
|
{%- include functions.html func='get_value' -%}
|
||||||
{%- assign banner = return -%}
|
{%- assign banner = return -%}
|
||||||
|
|
||||||
{%- assign result = page.hidden | where_exp: "item", "item == 'header'" -%}
|
{%- assign name = 'hidden' -%}
|
||||||
|
{%- include functions.html func='get_value' -%}
|
||||||
|
{%- assign hidden = return -%}
|
||||||
|
|
||||||
|
{%- assign result = hidden | where_exp: "item", "item == 'header'" -%}
|
||||||
{%- if banner == nil and result.size == 0 -%}
|
{%- if banner == nil and result.size == 0 -%}
|
||||||
{%- include views/post-header.html -%}
|
{%- include views/post-header.html -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- include views/article.html -%}
|
{%- include views/article.html -%}
|
||||||
|
|
||||||
{%- assign result = page.hidden | where_exp: "item", "item == 'navigator'" -%}
|
{%- assign result = hidden | where_exp: "item", "item == 'navigator'" -%}
|
||||||
{%- if result.size == 0 -%}
|
{%- if result.size == 0 -%}
|
||||||
<div class="post-nav">
|
<div class="post-nav">
|
||||||
{%- if page.previous -%}
|
{%- if page.previous -%}
|
||||||
|
@ -38,7 +42,7 @@ sidebar:
|
||||||
</div>
|
</div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- assign result = page.hidden | where_exp: "item", "item == 'related_posts'" -%}
|
{%- assign result = hidden | where_exp: "item", "item == 'related_posts'" -%}
|
||||||
{%- if result.size == 0 -%}
|
{%- if result.size == 0 -%}
|
||||||
<div class="post-related">
|
<div class="post-related">
|
||||||
<div>Related Articles</div>
|
<div>Related Articles</div>
|
||||||
|
@ -51,7 +55,7 @@ sidebar:
|
||||||
</div>
|
</div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- assign result = page.hidden | where_exp: "item", "item == 'comments'" -%}
|
{%- assign result = hidden | where_exp: "item", "item == 'comments'" -%}
|
||||||
{%- if result.size == 0 -%}
|
{%- if result.size == 0 -%}
|
||||||
<div class="post-comments">
|
<div class="post-comments">
|
||||||
{%- if page.comments != false -%}
|
{%- if page.comments != false -%}
|
||||||
|
|
Loading…
Reference in a new issue