feat(homepage): allow hiding posts listing (#317)

This commit is contained in:
Óscar
2024-05-19 20:36:38 +02:00
committed by GitHub
parent 349663f28f
commit c54251ca7a
2 changed files with 23 additions and 17 deletions

View File

@@ -9,7 +9,11 @@
{%- set first_section = "posts" -%}
{%- 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 %}
{%- include "partials/home_banner.html" -%}
{% endif -%}