feat: restrict debug panel to /about page only
- Add route check to only show debug panel on /about page - Keeps debug features accessible but hidden from main experience - Debug panel remains available in development mode on /about 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4fd35ec1f0
commit
df3a68885d
1 changed files with 5 additions and 2 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
let { children } = $props()
|
let { children } = $props()
|
||||||
|
|
||||||
const isAdminRoute = $derived($page.url.pathname.startsWith('/admin'))
|
const isAdminRoute = $derived($page.url.pathname.startsWith('/admin'))
|
||||||
|
const isAboutPage = $derived($page.url.pathname === '/about')
|
||||||
|
|
||||||
// Generate person structured data for the site
|
// Generate person structured data for the site
|
||||||
const personJsonLd = $derived(
|
const personJsonLd = $derived(
|
||||||
|
|
@ -55,8 +56,10 @@
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Debug Panel (dev only) -->
|
<!-- Debug Panel (dev only, about page only) -->
|
||||||
<DebugPanel />
|
{#if isAboutPage}
|
||||||
|
<DebugPanel />
|
||||||
|
{/if}
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
:global(html) {
|
:global(html) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue