Skip to content

Commit

Permalink
Adjust indent size for js-files
Browse files Browse the repository at this point in the history
  • Loading branch information
fflaten committed May 5, 2023
1 parent 1a47f8c commit 14c7631
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ trim_trailing_whitespace = true
indent_size = 4
max_line_length = 80

[*.{json,ps1xml,props,xml,yaml,css}]
[*.{json,ps1xml,props,xml,yaml,css,js}]
indent_size = 2
22 changes: 11 additions & 11 deletions src/components/Giscus.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ import React from 'react';
/**
* Adds a meta-tag to ensure new dicussion always add the canonical link in the initial post.
* Avoids any localhost etc. if first reaction/post was made from a preview build
*
*
* See https://github.com/giscus/giscus/blob/main/ADVANCED-USAGE.md#giscusbacklink
*/
export function GiscusHead() {
const {
siteConfig: { url: siteUrl },
} = useDocusaurusContext();
const { pathname } = useLocation();
const canonicalUrl = siteUrl + useBaseUrl(pathname);
const {
siteConfig: { url: siteUrl },
} = useDocusaurusContext();
const { pathname } = useLocation();
const canonicalUrl = siteUrl + useBaseUrl(pathname);

return (
<Head>
<meta name="giscus:backlink" content={canonicalUrl} />
</Head>
)
return (
<Head>
<meta name="giscus:backlink" content={canonicalUrl} />
</Head>
)
}

export function GiscusComponent() {
Expand Down

0 comments on commit 14c7631

Please sign in to comment.