feat: conditionally render sections based on CV path
This commit is contained in:
parent
0c8bcabaef
commit
a89cd9c09f
13
index.php
13
index.php
@ -190,7 +190,7 @@ $cv_skills = $cvData['cv']['skills'] ?? [];
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<?php if ($highlights): ?>
|
<?php if ($isCvPath && $highlights): ?>
|
||||||
<section class="card selected-work">
|
<section class="card selected-work">
|
||||||
<h2>Selected Work</h2>
|
<h2>Selected Work</h2>
|
||||||
<?php foreach ($highlights as $h): ?>
|
<?php foreach ($highlights as $h): ?>
|
||||||
@ -214,6 +214,7 @@ $cv_skills = $cvData['cv']['skills'] ?? [];
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($cvData['outside_work'] ?? []): ?>
|
<?php if ($cvData['outside_work'] ?? []): ?>
|
||||||
|
<?php if ($isCvPath): ?>
|
||||||
<section class="card personal">
|
<section class="card personal">
|
||||||
<h2>Outside Work</h2>
|
<h2>Outside Work</h2>
|
||||||
<div class="personal-tags">
|
<div class="personal-tags">
|
||||||
@ -222,6 +223,16 @@ $cv_skills = $cvData['cv']['skills'] ?? [];
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</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 endif; ?>
|
||||||
|
|
||||||
<?php if (!$isCvPath && ($cvData['creations'] ?? [])): ?>
|
<?php if (!$isCvPath && ($cvData['creations'] ?? [])): ?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user