Skip to content

Commit

Permalink
Add a layout for blog posts so they have a back button
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfr <johan.ronsse@gmail.com>
  • Loading branch information
Wolfr committed Jun 26, 2020
1 parent a6d1195 commit fd4648a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/blog/posts/_layout.svelte
@@ -0,0 +1,6 @@
<script>
import { url } from '@sveltech/routify'
</script>

<a href="{$url('../')}">&larr; Back</a>
<slot />

0 comments on commit fd4648a

Please sign in to comment.