mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-19 04:55:18 +00:00
pass props.path down to nav - is a bit more self-explanatory
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
<Nav page={
|
||||
props.path === '/' ? 'home' :
|
||||
props.path === '/about' ? 'about' :
|
||||
props.path.startsWith('/blog') ? 'blog' :
|
||||
null
|
||||
}/>
|
||||
<Nav path={props.path}/>
|
||||
|
||||
<main>
|
||||
<svelte:component this={Page} {...props}/>
|
||||
|
||||
Reference in New Issue
Block a user