Back-to-top-Button: erscheint nach 1,5 Viewporthöhen, Fokus-Management, reduced-motion, 48px-Ziel
Enthält auch User-Upgrade: JSON-LD als @graph mit seitenspezifischen Extra-Knoten Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@ if (empty($meta['title_absolute'])) {
|
||||
$description = $meta['description'] ?? $club['description'];
|
||||
$canonical = abs_url($current === '404' ? '' : $current);
|
||||
$ogImage = rtrim((string) config('base_url'), '/') . '/assets/' . ltrim($meta['og_image'] ?? 'img/og-default.jpg', '/');
|
||||
$scripts = array_merge(['nav.js'], $meta['scripts'] ?? []);
|
||||
$scripts = array_merge(['nav.js', 'back-to-top.js'], $meta['scripts'] ?? []);
|
||||
?>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
@@ -49,4 +49,4 @@ $scripts = array_merge(['nav.js'], $meta['scripts'] ?? []);
|
||||
<?php foreach ($scripts as $js): ?>
|
||||
<script defer src="<?= e(asset("js/{$js}")) ?>"></script>
|
||||
<?php endforeach; ?>
|
||||
<?php component('jsonld'); ?>
|
||||
<?php component('jsonld', ['extra' => $meta['schema'] ?? []]); ?>
|
||||
|
||||
Reference in New Issue
Block a user