update to v2

This commit is contained in:
Rich Harris
2018-04-19 11:05:29 -04:00
parent 247c3c2dbd
commit a7cb019102
11 changed files with 23 additions and 27 deletions

View File

@@ -1,11 +1,11 @@
<nav>
<ul>
<li><a class='{{page === "home" ? "selected" : ""}}' href='.'>home</a></li>
<li><a class='{{page === "about" ? "selected" : ""}}' href='about'>about</a></li>
<li><a class='{page === "home" ? "selected" : ""}' href='.'>home</a></li>
<li><a class='{page === "about" ? "selected" : ""}' href='about'>about</a></li>
<!-- 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='{{page === "blog" ? "selected" : ""}}' href='blog'>blog</a></li>
<li><a rel=prefetch class='{page === "blog" ? "selected" : ""}' href='blog'>blog</a></li>
</ul>
</nav>