From b8c60b1a81eaed92a0539d4fde63e45a0be15d9d Mon Sep 17 00:00:00 2001 From: Ricardo Date: Sun, 8 Feb 2026 18:06:07 +0100 Subject: [PATCH] fix: hide default hero when homepage builder is active (Tier 1) The hardcoded hero section was always rendering, causing a double hero when the homepage plugin is configured and has its own hero enabled. Now only shows for Tier 2 (CV) and Tier 3 (default) fallbacks. Co-Authored-By: Claude Opus 4.6 --- _includes/layouts/home.njk | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/_includes/layouts/home.njk b/_includes/layouts/home.njk index e3802da..e7efa14 100644 --- a/_includes/layouts/home.njk +++ b/_includes/layouts/home.njk @@ -3,7 +3,13 @@ layout: layouts/base.njk withSidebar: true --- -{# Hero Section #} +{# Homepage content — three-tier fallback: #} +{# 1. Plugin config (homepageConfig) — homepage builder controls everything #} +{# 2. CV data — show experience/projects/skills with default hero #} +{# 3. Default — show recent posts and activity with default hero #} + +{# Default hero — only shown for Tier 2 and Tier 3 (plugin controls its own hero) #} +{% if not (homepageConfig and homepageConfig.sections) %}
{# Avatar #} @@ -59,11 +65,7 @@ withSidebar: true
- -{# Homepage content — three-tier fallback: #} -{# 1. Plugin config (homepageConfig) — Phase 3, future #} -{# 2. CV data — show experience/projects/skills #} -{# 3. Default — show recent posts and activity #} +{% endif %} {% set hasCvData = (cv.experience and cv.experience.length) or (cv.projects and cv.projects.length) or