Skip to content

Commit 14c7631

Browse files
committed
Adjust indent size for js-files
1 parent 1a47f8c commit 14c7631

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ trim_trailing_whitespace = true
99
indent_size = 4
1010
max_line_length = 80
1111

12-
[*.{json,ps1xml,props,xml,yaml,css}]
12+
[*.{json,ps1xml,props,xml,yaml,css,js}]
1313
indent_size = 2

src/components/Giscus.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ import React from 'react';
99
/**
1010
* Adds a meta-tag to ensure new dicussion always add the canonical link in the initial post.
1111
* Avoids any localhost etc. if first reaction/post was made from a preview build
12-
*
12+
*
1313
* See https://github.com/giscus/giscus/blob/main/ADVANCED-USAGE.md#giscusbacklink
1414
*/
1515
export function GiscusHead() {
16-
const {
17-
siteConfig: { url: siteUrl },
18-
} = useDocusaurusContext();
19-
const { pathname } = useLocation();
20-
const canonicalUrl = siteUrl + useBaseUrl(pathname);
16+
const {
17+
siteConfig: { url: siteUrl },
18+
} = useDocusaurusContext();
19+
const { pathname } = useLocation();
20+
const canonicalUrl = siteUrl + useBaseUrl(pathname);
2121

22-
return (
23-
<Head>
24-
<meta name="giscus:backlink" content={canonicalUrl} />
25-
</Head>
26-
)
22+
return (
23+
<Head>
24+
<meta name="giscus:backlink" content={canonicalUrl} />
25+
</Head>
26+
)
2727
}
2828

2929
export function GiscusComponent() {

0 commit comments

Comments
 (0)