mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-12 02:15:17 +00:00
Some nav
This commit is contained in:
@@ -6,9 +6,14 @@
|
||||
<!-- for the blog link, we're using rel=prefetch so that Sapper prefetches
|
||||
the blog data when we hover over the link or tap it on a touchscreen -->
|
||||
<li><a rel=prefetch class='{segment === "blog" ? "selected" : ""}' href='blog'>blog</a></li>
|
||||
<li><a class='{segment === "login" ? "selected" : ""}' href='login'>log in</a></li>
|
||||
<li><a class='{segment === "signup" ? "selected" : ""}' href='signup'>sign up</a></li>
|
||||
<li><span>sign out</span></li>
|
||||
|
||||
{#if $user}
|
||||
<li><span>sign out</span></li>
|
||||
{:else}
|
||||
<li><a class='{segment === "login" ? "selected" : ""}' href='login'>log in</a></li>
|
||||
<li><a class='{segment === "signup" ? "selected" : ""}' href='signup'>sign up</a></li>
|
||||
{/if}
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user