Skip to content

Commit

Permalink
feat: add segment variable to track route
Browse files Browse the repository at this point in the history
  • Loading branch information
Fariz Rizaldy committed Jan 13, 2020
1 parent 9fd02a6 commit f59e638
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/_layout.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<script>
import Navbar from '../components/Navbar'
export let segment
</script>

<main>
<slot />
<Navbar />
<Navbar {segment} />
</main>

0 comments on commit f59e638

Please sign in to comment.