File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
import type { FC } from 'react' ;
2
2
import React from 'react' ;
3
3
import Link from '@docusaurus/Link' ;
4
+ import useBaseUrl from '@docusaurus/useBaseUrl' ;
4
5
5
6
import Translate from '@docusaurus/Translate' ;
6
7
7
8
const ArrowAnim : FC = ( ) => (
8
9
< Link
9
- href = "/blog"
10
+ target = "_parent"
11
+ to = { useBaseUrl ( '/blog/' ) }
10
12
className = "btn-docs"
11
13
>
12
14
< div className = "goto" >
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Link from '@docusaurus/Link';
4
4
import Translate from '@docusaurus/Translate' ;
5
5
import { LazyLoadImage } from 'react-lazy-load-image-component' ;
6
6
import useWindowType from '@theme/hooks/useWindowSize' ;
7
+ import useBaseUrl from '@docusaurus/useBaseUrl' ;
7
8
import ArrowAnim from '../ArrowAnim' ;
8
9
import style from '../../css/landing-sections/endcta.module.scss' ;
9
10
@@ -27,7 +28,7 @@ const EndCTA: FC = () => {
27
28
) }
28
29
</ p >
29
30
< 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" >
31
32
< Translate id = "hero.component.download.btn" > Getting Started</ Translate >
32
33
</ Link >
33
34
< ArrowAnim />
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import Translate from '@docusaurus/Translate';
5
5
6
6
import BrowserOnly from '@docusaurus/BrowserOnly' ;
7
7
import useWindowType from '@theme/hooks/useWindowSize' ;
8
+ import useBaseUrl from '@docusaurus/useBaseUrl' ;
8
9
import ArrowAnim from '../ArrowAnim' ;
9
10
import '../../css/landing-sections/hero.scss' ;
10
11
@@ -46,7 +47,7 @@ const HeroSection: FC = () => (
46
47
</ Translate >
47
48
</ h3 >
48
49
< 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" >
50
51
< Translate id = "hero.component.download.btn" > Getting Started</ Translate >
51
52
</ Link >
52
53
< ArrowAnim />
You can’t perform that action at this time.
0 commit comments