section : add isTitled option
This commit is contained in:
parent
8a76ab6821
commit
74b9433124
2 changed files with 10 additions and 2 deletions
|
|
@ -18,7 +18,9 @@
|
|||
|
||||
<?php foreach($page->children() as $sectionPage): ?>
|
||||
<section id="<?= $sectionPage->slug() ?>" <?= e($sectionPage->backgroundColor()->isNotEmpty() == 'true', ' style="--color: ' . $sectionPage->backgroundColor() . ';"') ?>>
|
||||
<h2 class="h3"><?= $sectionPage->title() ?></h2>
|
||||
<?php if ($sectionPage->isTitled() != 'false'): ?>
|
||||
<h2 class="h3"><?= $sectionPage->title() ?></h2>
|
||||
<?php endif ?>
|
||||
<?php foreach ($sectionPage->section()->toLayouts() as $layout): ?>
|
||||
<div
|
||||
class="section__row grid<?= e($layout->attrs()->imgHeight()->isNotEmpty() == 'true', ' fixed-img-height') ?>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue