File tree 3 files changed +23
-18
lines changed
3 files changed +23
-18
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
5
5
import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
6
6
import Giscus from "@giscus/react" ;
7
7
import React from 'react' ;
8
+ import styles from './styles.module.css' ;
8
9
9
10
/**
10
11
* Adds a meta-tag to ensure new dicussion always add the canonical link in the initial post.
@@ -30,21 +31,23 @@ export function GiscusComponent() {
30
31
const { colorMode } = useColorMode ( ) ;
31
32
32
33
return (
33
- < Giscus
34
- repo = "fflaten/docs"
35
- repoId = "MDEwOlJlcG9zaXRvcnkzMDY2ODYxNTc"
36
- category = "Comments"
37
- categoryId = "DIC_kwDOEkeozc4CWO6M"
38
- mapping = "pathname"
39
- strict = "1"
40
- reactionsEnabled = "1"
41
- emitMetadata = "0"
42
- inputPosition = "top"
43
- theme = { colorMode }
44
- lang = "en"
45
- loading = "lazy"
46
- crossorigin = "anonymous"
47
- async
48
- />
34
+ < section className = { styles . commentsSection } >
35
+ < Giscus
36
+ repo = "fflaten/docs"
37
+ repoId = "MDEwOlJlcG9zaXRvcnkzMDY2ODYxNTc"
38
+ category = "Comments"
39
+ categoryId = "DIC_kwDOEkeozc4CWO6M"
40
+ mapping = "pathname"
41
+ strict = "1"
42
+ reactionsEnabled = "1"
43
+ emitMetadata = "0"
44
+ inputPosition = "top"
45
+ theme = { colorMode }
46
+ lang = "en"
47
+ loading = "lazy"
48
+ crossorigin = "anonymous"
49
+ async
50
+ />
51
+ </ section >
49
52
) ;
50
53
}
Original file line number Diff line number Diff line change
1
+ .commentsSection {
2
+ margin-top : 2rem ;
3
+ }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import DocBreadcrumbs from '@theme/DocBreadcrumbs';
20
20
import Unlisted from '@theme/Unlisted' ;
21
21
import styles from './styles.module.css' ;
22
22
/* Customization start */
23
- import { GiscusHead , GiscusComponent } from '../../../components/Giscus' ;
23
+ import { GiscusHead , GiscusComponent } from '../../../components/Giscus/Giscus ' ;
24
24
/* Customization end */
25
25
26
26
/**
@@ -63,7 +63,6 @@ export default function DocItemLayout({ children }) {
63
63
< DocItemPaginator />
64
64
</ div >
65
65
{ /* Customization start */ }
66
- < br />
67
66
< GiscusHead />
68
67
< GiscusComponent />
69
68
{ /* Customization end */ }
You can’t perform that action at this time.
0 commit comments