All checks were successful
Deploy Production / Deploy to Production (push) Successful in 28s
Each page template now renders its content in a visually-hidden #ssr-content div (sr-only technique) so search engine crawlers see real HTML without impacting the Svelte app layout. Shared snippets handle nav, footer contact info, and article cards. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
974 B
PHP
28 lines
974 B
PHP
<?php snippet('header') ?>
|
|
<div id="ssr-content">
|
|
<?php snippet('ssr/nav') ?>
|
|
<main>
|
|
<h1><?= $page->heading()->isNotEmpty() ? $page->heading() : $page->title() ?></h1>
|
|
<?php if ($page->subtitle()->isNotEmpty()): ?>
|
|
<p><?= $page->subtitle() ?></p>
|
|
<?php endif ?>
|
|
<?php foreach ($page->body()->toBlocks() as $block): ?>
|
|
<?php if ($block->type() === 'text'): ?>
|
|
<?= $block->content()->text()->value() ?>
|
|
<?php endif ?>
|
|
<?php endforeach ?>
|
|
<?php $team = $page->files()->template('member')->sort('sort') ?>
|
|
<?php if ($team->isNotEmpty()): ?>
|
|
<ul>
|
|
<?php foreach ($team as $member): ?>
|
|
<li>
|
|
<strong><?= $member->memberName() ?></strong>
|
|
<?php if ($member->role()->isNotEmpty()): ?> — <?= $member->role() ?><?php endif ?>
|
|
</li>
|
|
<?php endforeach ?>
|
|
</ul>
|
|
<?php endif ?>
|
|
</main>
|
|
<?php snippet('ssr/footer') ?>
|
|
</div>
|
|
<?php snippet('footer') ?>
|