Migrate the Laysense production snapshot to LaySite 1.3
This commit is contained in:
@@ -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 ?>
|
||||
|
||||
Reference in New Issue
Block a user