File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { GoPencil } from "react-icons/go";
5
5
const EditOnGitHubLink = ( ) => {
6
6
const router = useRouter ( ) ;
7
7
const path = router . asPath . replace ( / \/ $ / , "" ) ;
8
- const githubUrl = `https://github.com/liara-cloud/docs/blob /master/src/pages${ path } .mdx` ;
8
+ const githubUrl = `https://github.com/liara-cloud/docs/edit /master/src/pages${ path } .mdx` ;
9
9
10
10
return (
11
11
< div
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const Layout = ({ children }) => {
16
16
< Sidebar showSidebar = { showSidebar } setShowSidebar = { setShowSidebar } />
17
17
< div className = "w-[100%] px-4 mt-[80px] md:px-0 overflow-x-hidden md:w-[1350px] layout md:pr-[300px] md:mt-[100px] md:mx-auto pb-10" >
18
18
{ children }
19
- { router . pathname !== "/" && < EditOnGitHubLink /> }
19
+ { router . pathname !== "/" && router . pathname !== "/tv" && < EditOnGitHubLink /> }
20
20
</ div >
21
21
</ div >
22
22
< Header setShowSidebar = { setShowSidebar } />
You can’t perform that action at this time.
0 commit comments