feat: conditionally render sections based on CV path

This commit is contained in:
Dejvino 2026-05-23 19:11:59 +02:00 committed by Dejvino (aider)
parent 0c8bcabaef
commit a89cd9c09f

View File

@ -190,7 +190,7 @@ $cv_skills = $cvData['cv']['skills'] ?? [];
</section>
<?php if ($highlights): ?>
<?php if ($isCvPath && $highlights): ?>
<section class="card selected-work">
<h2>Selected Work</h2>
<?php foreach ($highlights as $h): ?>
@ -214,6 +214,7 @@ $cv_skills = $cvData['cv']['skills'] ?? [];
<?php endif; ?>
<?php if ($cvData['outside_work'] ?? []): ?>
<?php if ($isCvPath): ?>
<section class="card personal">
<h2>Outside Work</h2>
<div class="personal-tags">
@ -222,6 +223,16 @@ $cv_skills = $cvData['cv']['skills'] ?? [];
<?php endforeach; ?>
</div>
</section>
<?php else: ?>
<section class="card personal">
<h2>Interests</h2>
<div class="personal-tags">
<?php foreach ($cvData['outside_work'] as $tag): ?>
<span class="personal-tag"><?= $tag ?></span>
<?php endforeach; ?>
</div>
</section>
<?php endif; ?>
<?php endif; ?>
<?php if (!$isCvPath && ($cvData['creations'] ?? [])): ?>