fix: ensure bookmarks page has generated HTML file (#1861)

* fix: ensure bookmarks page has generated HTML file

* fix: only render if not logged in
This commit is contained in:
Nolan Lawson 2020-09-02 18:01:46 -07:00 committed by GitHub
parent fd7c22345c
commit c683a4b85d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 11 deletions

View file

@ -80,14 +80,12 @@
</HiddenFromSSR>
<div style="display: none">
<!-- TODO: this is just a hack so that `sapper export` knows to crawl these files -->
<!-- Note that these links have to be spread out or else they result in ECONNRESET errors during crawling -->
<!-- See also search.html -->
<a href="/requests">Requests</a>
<a href="/muted">Muted</a>
<a href="/blocked">Blocked</a>
<a href="/pinned">Pinned</a>
<a href="/requests">Requests</a>
<a href="/share">Share</a>
<a href="/federated">Federated</a>
<a href="/favorites">Favorites</a>
<a href="/direct">Conversations</a>
</div>
{/if}
<style>

View file

@ -10,6 +10,17 @@
<p>You can search once logged in to an instance.</p>
</FreeTextLayout>
</HiddenFromSSR>
<div style="display: none">
<!-- TODO: this is just a hack so that `sapper export` knows to crawl these files -->
<!-- Note that these links have to be spread out or else they result in ECONNRESET errors during crawling -->
<!-- See also community/index.html -->
<a href="/local">Local</a>
<a href="/federated">Federated</a>
<a href="/favorites">Favorites</a>
<a href="/direct">Conversations</a>
<a href="/bookmarks">Bookmarks</a>
<a href="/share">Share</a>
</div>
{/if}
<style>
.search-page {