This commit is contained in:
Robert Hall
2018-09-24 19:31:48 -06:00
parent 297a951fcb
commit eae1e42dd4

View File

@@ -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>