Document
The most common layout block in BaseHub. Think of them as directories in a file system.
Features
✅ Ideal for singleton types, such as a “homepage”
✅ Supports Analytics
✅ Can have nested blocks
✅ Can be converted into a Component
✅ Can be hidden
Common Patterns
Although you’re free to structure your Repository however you like, there are some common patterns that can be useful for getting started.
Have a “Components” document in which you’ll store common, reusable components, such as “Button”, “Feature Card“, “Tweet“, or similar.
Have a “Collections” document in which you’ll have different collections, such as “People”, “Testimonials”, “Snippets”, or similar.
Have a “Settings” document in which you’ll store general data, such as site-wide metadata, or constants such as social media links.