Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Document the new "Frontity Slot Block" plugin and "slot-block" processor #42

Description

@luisherranz

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 -->
  <Slot name="Before the post" />

  <!-- Use Html2React to process the HTML generated by WordPress -->
  <!-- https://api.frontity.org/frontity-packages/features-packages/html2react -->
  <Html2React html={post.content.rendered} />

  <!-- Add another Slot after the content. -->
  <Slot name="After the post" />
</Content>

What do you think?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions