From 076cf42721d1271b3d875ed3f52098cc1e2aab6a Mon Sep 17 00:00:00 2001 From: ioanSL Date: Mon, 18 Mar 2024 11:14:09 +0200 Subject: [PATCH] Update strategyGuides based on window.EXCLUDE_FILES value --- src/pages/index.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index 1979dc2..8d63090 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -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', @@ -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` @@ -240,6 +245,11 @@ export default function Home() { const {siteConfig} = useDocusaurusContext(); return ( + + +