✨ feat(homepage): allow hiding posts listing (#317)
This commit is contained in:
parent
349663f28f
commit
c54251ca7a
@ -1,3 +1,4 @@
|
|||||||
|
{%- if paginator or extra_section -%}
|
||||||
<div id="posts-list">
|
<div id="posts-list">
|
||||||
<div>
|
<div>
|
||||||
{{ macros_page_header::page_header(title=section.title) }}
|
{{ macros_page_header::page_header(title=section.title) }}
|
||||||
@ -16,3 +17,4 @@
|
|||||||
{% if paginator %}
|
{% if paginator %}
|
||||||
{%- include "partials/paginate.html" -%}
|
{%- include "partials/paginate.html" -%}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{%- endif -%}
|
||||||
|
@ -9,7 +9,11 @@
|
|||||||
{%- set first_section = "posts" -%}
|
{%- set first_section = "posts" -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
<main class={{ first_section }}-first>
|
{%- if section.extra.section_path or paginator and projects_path -%}
|
||||||
|
{%- set more_than_one_section_shown = true -%}
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
<main {% if more_than_one_section_shown %}class="{{ first_section }}-first"{% endif %}>
|
||||||
{%- if section.extra.header %}
|
{%- if section.extra.header %}
|
||||||
{%- include "partials/home_banner.html" -%}
|
{%- include "partials/home_banner.html" -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user