Skip to content

Commit

Permalink
Update strategyGuides based on window.EXCLUDE_FILES value
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanSL committed Mar 18, 2024
1 parent 5f90ee6 commit 076cf42
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const dAppGuides = [
},
]

export const strategyGuides = [
export const strategyGuides = window.EXCLUDE_FILES === 'false' ? [
{
title: 'LUSD Strategy',
to: '/docs/concepts/strategies/lusd',
Expand All @@ -72,7 +72,12 @@ export const strategyGuides = [
to: '/docs/concepts/strategies/liquidStaking',
text: 'Learn how to stake ETH',
}

] : [
{
title: 'LUSD Strategy',
to: '/docs/concepts/strategies/lusd',
text: 'Learn how to borrow LUSD',
}
]

const IconWrapper = styled.div`
Expand Down Expand Up @@ -240,6 +245,11 @@ export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout title={'Nimbora Docs | Nimbora Yield Dex'} description='Welcome to Nimbora Docs! Learn more about how to use Nimbora. Get informed about Nimbora mechanism, SDK and more'>
<head>
<script>
window.EXCLUDE_FILES = htmlWebpackPlugin.options.EXCLUDE_FILES;
</script>
</head>
<Container>
<DocsHeader>
<div
Expand Down

0 comments on commit 076cf42

Please sign in to comment.