Skip to content

Commit

Permalink
show docs only on root
Browse files Browse the repository at this point in the history
  • Loading branch information
joeetwork committed Dec 13, 2023
1 parent 912e799 commit a9b43be
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions src/lib/components/nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,25 @@

<div class="col-span-2 flex items-center justify-end">
<div class="flex justify-end pr-2">
<div
class="tooltip"
data-tip="Docs"
>
<a
href="https://docs.helius.dev/welcome/what-is-helius"
rel="noreferrer"
target="_blank"
class="btn-ghost btn"
{#if $page.url.pathname == "/"}
<div
class="tooltip"
data-tip="Docs"
>
<img
class="h-6 opacity-90"
src="docs.svg"
alt=""
/>
</a>
</div>
<a
href="https://docs.helius.dev/welcome/what-is-helius"
rel="noreferrer"
target="_blank"
class="btn-ghost btn"
>
<img
class="h-6 opacity-90"
src="docs.svg"
alt=""
/>
</a>
</div>
{/if}
{#if $page.url.pathname !== "/"}
<div
class="tooltip"
Expand Down

0 comments on commit a9b43be

Please sign in to comment.