Skip to content

Commit

Permalink
always display strategy page heading on microsite
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkunz committed Dec 2, 2024
1 parent aeebde2 commit 8c7b2b5
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/routes/strategies/[strategy]/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
<Breadcrumbs labels={breadcrumbs} />
{/if}

{#if $page.data.skipSideNav}
{#if strategyMicrosite}
<Breadcrumbs labels={breadcrumbs} startAt={1} />
{/if}
{#if $page.data.skipSideNav && !strategyMicrosite}
<slot />
{:else}
<main class="strategy-layout ds-container ds-3" class:microsite={strategyMicrosite}>
Expand Down Expand Up @@ -91,16 +88,23 @@
</div>
{/if}

<div class="subpage">
<StrategyNav
basePath="/strategies/{strategy.id}"
currentPath={$page.url.pathname}
hasEnzymeVault={strategy.on_chain_data.asset_management_mode === 'enzyme'}
backtestAvailable={strategy.backtest_available}
portfolioPromise={deferred.state.then((s) => s?.portfolio)}
/>
{#if $page.data.skipSideNav}
{#if strategyMicrosite}
<Breadcrumbs labels={breadcrumbs} startAt={2} />
{/if}
<slot />
</div>
{:else}
<div class="subpage">
<StrategyNav
basePath="/strategies/{strategy.id}"
currentPath={$page.url.pathname}
hasEnzymeVault={strategy.on_chain_data.asset_management_mode === 'enzyme'}
backtestAvailable={strategy.backtest_available}
portfolioPromise={deferred.state.then((s) => s?.portfolio)}
/>
<slot />
</div>
{/if}
</main>
{/if}

Expand Down

0 comments on commit 8c7b2b5

Please sign in to comment.