add sectioned template style
This commit is contained in:
parent
5f8bdc66c0
commit
caf16ee9ca
8 changed files with 80 additions and 4 deletions
|
|
@ -0,0 +1,26 @@
|
|||
<?php snippet('header') ?>
|
||||
|
||||
<section>
|
||||
<h1><?= $page->title() ?></h1>
|
||||
</section>
|
||||
|
||||
<?php foreach($page->children() as $sectionPage): ?>
|
||||
<section>
|
||||
<?php if ($sectionPage->isIndexed() != 'false'): ?>
|
||||
<h2 class="h3"><?= $sectionPage->title() ?></h2>
|
||||
<?php endif ?>
|
||||
<?php foreach ($sectionPage->section()->toLayouts() as $layout): ?>
|
||||
<div class="grid" id="<?= $layout->id() ?>">
|
||||
<?php foreach ($layout->columns() as $column): ?>
|
||||
<div class="grid__item" style="--span:<?= $column->span() ?>">
|
||||
<div class="blocks">
|
||||
<?= $column->blocks() ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</section>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue