File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { getPreviousAndNext } from '../util/getNavLinks';
8
8
import { getTutorialPages , getTutorialUnits } from ' ../util/getTutorialPages' ;
9
9
import BaseLayout from ' ./BaseLayout.astro' ;
10
10
import type { TutorialEntry } from ' ~/content/config' ;
11
+ import {getGithubEditUrl } from ' ~/util/getGithubEditUrl' ;
11
12
12
13
export interface Props {
13
14
content: TutorialEntry [' data' ];
@@ -27,11 +28,14 @@ const { next } = getPreviousAndNext(
27
28
tutorialPages .map ((page ) => ({ text: page .data .title , slug: stripLangFromSlug (page .slug ) })),
28
29
Astro
29
30
);
31
+
32
+ const githubEditUrl = getGithubEditUrl (Astro );
33
+ const fileToGetContributors = githubEditUrl .replace (' https://github.com/aziontech/docs/blob/main/' , ' ' );
30
34
---
31
35
32
36
<BaseLayout {... Astro .props }>
33
37
<RightSidebar slot =" secondary-sidebar" />
34
- <PageContent content ={ Astro .props .content } {... { next }}>
38
+ <PageContent content ={ Astro .props .content } {fileToGetContributors } { ... { next }}>
35
39
<MobileTutorialNav slot =" before-article" />
36
40
<p class =" unit" slot =" before-title" >
37
41
{ currentUnitIndex } • { currentUnit .title }
You can’t perform that action at this time.
0 commit comments