You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.
I was also wondering if it would be nice to have a Slot & Fill section in the Learning Frontity docs that explain the pattern. After all, it's one of the "core patterns". Perhaps the least known.
Also, maybe we should include some <Slot> components in mars-theme, so beginners know they exist. For example, we could add them before and after the post:
<Content><!-- Add a Slot so other packages can add content here. --><!-- https://docs.frontity.org/learning-frontity/slot-and-fills --><Slotname="Before the post" /><!-- Use Html2React to process the HTML generated by WordPress --><!-- https://api.frontity.org/frontity-packages/features-packages/html2react --><Html2Reacthtml={post.content.rendered}/><!-- Add another Slot after the content. --><Slotname="After the post" /></Content>
What do you think?
The text was updated successfully, but these errors were encountered:
By the way, @kasperaamodt has suggested adding also a Fill block, to be able to create fills directly from Gutenberg.
I am going to investigate if it would be possible, but please take into consideration that maybe this becomes the "Frontity Slot and Fill blocks" plugin and there will be a second processor called fill-block as part of this 🙂
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I was also wondering if it would be nice to have a
Slot & Fill
section in the Learning Frontity docs that explain the pattern. After all, it's one of the "core patterns". Perhaps the least known.Also, maybe we should include some
<Slot>
components inmars-theme
, so beginners know they exist. For example, we could add them before and after the post:What do you think?
The text was updated successfully, but these errors were encountered: