File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ const AT_NOTATION_KEYS = {
1414
1515const COMPONENTS_PATH = '@site/src/components' ;
1616
17- let components = { Disqus : "Disqus" } ;
17+ // let components = { Disqus: "Disqus" };
18+ let components = { } ;
1819let metaDescription = '' ;
1920
2021const wrapDataWithComponent = ( data , componentName ) => {
@@ -104,7 +105,7 @@ const onAfterDataTransformation = (data) => {
104105 const imports = `import { ${ allAvailableComponents . join ( ', ' ) } } from '${ COMPONENTS_PATH } ';\n\n` ;
105106 const isTitles = / - - - ( (?: \r ? \n | \r ) | .) + ?- - - / . test ( transformedData ) ;
106107 transformedData = isTitles
107- ? ( transformedData . replace ( / ^ ( - - - ( (?: \s * \n ) | .) + ?- - - ) / , `$1\n\n${ imports } ` ) + "\n\n<Disqus />" )
108+ ? ( transformedData . replace ( / ^ ( - - - ( (?: \s * \n ) | .) + ?- - - ) / , `$1\n\n${ imports } ` ) )
108109 : imports + transformedData ;
109110 }
110111
@@ -118,7 +119,7 @@ const onAfterDataTransformation = (data) => {
118119 } ) ;
119120 }
120121
121- components = { Disqus : "Disqus" } ;
122+ // components = { Disqus: "Disqus" };
122123 metaDescription = '' ;
123124
124125 return transformedData ;
You can’t perform that action at this time.
0 commit comments