Skip to content

Commit

Permalink
fix: Use customized blocks for home
Browse files Browse the repository at this point in the history
  • Loading branch information
holmey committed Jan 12, 2024
1 parent 87faac6 commit 7160c4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions content/home/home.en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ Title: Home

----

Text:
Blocks:

----

Metatitle: home
Metatitle:

----

Expand Down
3 changes: 1 addition & 2 deletions site/blueprints/pages/home.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tabs:
content:
icon: dashboard
fields:
text:
type: blocks
blocks: fields/blocks

seo:
label: SEO
Expand Down
2 changes: 1 addition & 1 deletion site/snippets/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<?php foreach ($page->blocks()->toBlocks() as $block) : ?>
<?php snippet('blocks/'.$block->type(), ['block' => $block]) ?>
<?php endforeach ?>
</div>
</div><?php var_dump($page->blocks()->toBlocks()) ?>

0 comments on commit 7160c4f

Please sign in to comment.