Skip to content

Commit

Permalink
fix(v2):pass siteConfig as prop to pages (#3025)
Browse files Browse the repository at this point in the history
* pass config as prop to pages

* use existing file

* Update packages/docusaurus-plugin-content-pages/src/index.ts

Co-authored-by: Sébastien Lorber <[email protected]>

Co-authored-by: Sébastien Lorber <[email protected]>
  • Loading branch information
anshulrgoyal and slorber authored Jul 9, 2020
1 parent 11751c2 commit a384986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/docusaurus-plugin-content-pages/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export default function pluginContentPages(
path: permalink,
component: source,
exact: true,
modules: {
config: `@generated/docusaurus.config`,
},
});
}),
);
Expand Down
1 change: 0 additions & 1 deletion website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ const QUOTES = [
function Home() {
const context = useDocusaurusContext();
const {siteConfig: {customFields = {}, tagline} = {}} = context;

return (
<Layout
permalink="/"
Expand Down

0 comments on commit a384986

Please sign in to comment.