File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11import type { FC } from 'react' ;
22import React from 'react' ;
33import Link from '@docusaurus/Link' ;
4+ import useBaseUrl from '@docusaurus/useBaseUrl' ;
45
56import Translate from '@docusaurus/Translate' ;
67
78const ArrowAnim : FC = ( ) => (
89 < Link
9- href = "/blog"
10+ target = "_parent"
11+ to = { useBaseUrl ( '/blog/' ) }
1012 className = "btn-docs"
1113 >
1214 < div className = "goto" >
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Link from '@docusaurus/Link';
44import Translate from '@docusaurus/Translate' ;
55import { LazyLoadImage } from 'react-lazy-load-image-component' ;
66import useWindowType from '@theme/hooks/useWindowSize' ;
7+ import useBaseUrl from '@docusaurus/useBaseUrl' ;
78import ArrowAnim from '../ArrowAnim' ;
89import style from '../../css/landing-sections/endcta.module.scss' ;
910
@@ -27,7 +28,7 @@ const EndCTA: FC = () => {
2728 ) }
2829 </ p >
2930 < div className = { style . links } >
30- < Link href = "/ docs/apisix/getting-started" className = "btn btn-download" >
31+ < Link target = "_parent" to = { useBaseUrl ( ' docs/apisix/getting-started' ) } className = "btn btn-download" >
3132 < Translate id = "hero.component.download.btn" > Getting Started</ Translate >
3233 </ Link >
3334 < ArrowAnim />
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import Translate from '@docusaurus/Translate';
55
66import BrowserOnly from '@docusaurus/BrowserOnly' ;
77import useWindowType from '@theme/hooks/useWindowSize' ;
8+ import useBaseUrl from '@docusaurus/useBaseUrl' ;
89import ArrowAnim from '../ArrowAnim' ;
910import '../../css/landing-sections/hero.scss' ;
1011
@@ -46,7 +47,7 @@ const HeroSection: FC = () => (
4647 </ Translate >
4748 </ h3 >
4849 < div className = "hero-ctas" >
49- < Link href = "/ docs/apisix/getting-started" className = "btn btn-download" >
50+ < Link target = "_parent" to = { useBaseUrl ( ' docs/apisix/getting-started' ) } className = "btn btn-download" >
5051 < Translate id = "hero.component.download.btn" > Getting Started</ Translate >
5152 </ Link >
5253 < ArrowAnim />
You can’t perform that action at this time.
0 commit comments