Migrate the Laysense production snapshot to LaySite 1.3

This commit is contained in:
2026-11-26 00:26:48 +08:00
parent 250a67af94
commit 89f363186b
80 changed files with 491 additions and 29 deletions
+2 -2
View File
@@ -48,10 +48,10 @@ $catalog = $section['catalogFeed'] ?? false;
</div>
<?php if ($network): ?>
<?php foreach ($section['articleFeed'] as $group): ?>
<?php $slug = $group['categories'][0]; $anchor = ($pageSlug ?? '') === 'home' && $section['key'] === 'network' ? $slug : $section['key'] . '-group-' . $slug; ?>
<?php $slug = $group['categories'][0]; $anchor = in_array($pageSlug ?? '', ['home', 'network'], true) && $section['key'] === 'network' ? $slug : $section['key'] . '-group-' . $slug; ?>
<div class="network-group" id="<?= $e($anchor) ?>">
<h3><?= $e($group['label']) ?></h3>
<?= View::fragment('network-items', ['articles' => $group['articles'], 'standalone' => false]) ?>
<?= View::fragment('network-items', ['articles' => $group['articles'], 'standalone' => ($pageSlug ?? '') === 'network']) ?>
</div>
<?php endforeach ?>
<?php if ($section['archivePath'] !== null): ?><p class="article-feed-archive"><a class="back-link" href="<?= $e($section['archivePath']) ?>">查看全部</a></p><?php endif ?>