Closed thepartisan101 closed 3 years ago
This type of customization is currently not supported as this is not part of the default Ghost theme, but you can of course fork the code and do whatever you like. Principally, there are three aspects to this:
Note that next-cms-ghost
transforms the all html
coming from Ghost into a syntax tree (HAST), which can be easily mutated with React components. Have a look at the implementation of the Next.js Image component in order to see how this can be done.
Closed as answered.
Hi, I'd like to add an accordion element (example from Semantic UI: https://react.semantic-ui.com/modules/accordion/) to have more information be shown in the post on click by the user. How should I go about configuring the react components so that they point to the right variable coming from the Ghost content API (within the mobiledoc format)?
Should I add a tag to that text and assign it in the component class/find a way to pass it as props? ` render() { const { activeIndex } = this.state
Thanks for any help!