Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@simoneb
Last active March 19, 2019 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simoneb/a69a9d3a6a3733502e2bbf1d2373c3e7 to your computer and use it in GitHub Desktop.
Save simoneb/a69a9d3a6a3733502e2bbf1d2373c3e7 to your computer and use it in GitHub Desktop.
import myCustomTheme from '@my-custom-theme'
import { MyCustomFooter, MyCustomHomepage } from '@my-component-library'
export default {
// overriding theme
theme: myCustomTheme, // OR
theme: originalTheme => myCustomTheme,
// component presence
componentPresence: {
homepage: {
editorPicks: false
},
footer: false, // OR
footer: {
newsletter: false
}
},
// component content
componentContent: {
footer: {
companyInfo: "company information, address",
links: {
support: ["link 1", "link 2"],
resources: ["link 1", "link 2"]
}
}
},
// overriding components
components: {
// homepage: MyCustomHomepage,
footer: MyCustomFooter
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment