Add whole-page template collections and Caddy examples
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Content\PageTemplates;
|
||||
use App\Content\View;
|
||||
|
||||
$e = View::escape(...);
|
||||
@@ -75,6 +76,11 @@ $field = static fn (string $name): string => $canvas ? ' data-studio-field="' .
|
||||
<?= View::fragment('section', ['section' => $section, 'moment' => $home && $section['key'] === 'about', 'canvas' => $canvas, 'pageSlug' => $page['slug']]) ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
<?php if ($credit = PageTemplates::photoCredit($page['image'])): ?>
|
||||
<p class="wrap page-photo-credit">摄影 <a href="<?= $e($credit[2]) ?>"><?= $e($credit[0]) ?></a> ·
|
||||
<?php if ($credit[3]): ?><a href="<?= $e($credit[3]) ?>"><?= $e($credit[1]) ?></a><?php else: ?><?= $e($credit[1]) ?><?php endif ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
<?php if ($canvas): ?>
|
||||
<template data-studio-section-end><?= View::fragment('section', [
|
||||
'section' => ['style' => 'plain', 'key' => 'new', 'version' => null, 'title' => '', 'lead' => '', 'body' => ''],
|
||||
|
||||
Reference in New Issue
Block a user