1. Alert Boxes
Create consistent alert components:
Build reusable UI components with SSI
Learn how to use HTML block includes to build component libraries
Index: tutorial on HTML block includes
Interactive Widget Examples
Welcome to interactive widget examples
Index page information - specific to widgets tutorial
Index: tutorial on HTML block includes
HTML blocks provide the structure (widgets, layouts, navigation), while markdown provides the content (documentation, articles, tutorials).
This separation gives you:
This very tutorial uses both:
Let's explore how to build your own widget library!
Create consistent alert components:
Build reusable card layouts:
This is a simple card component that can be reused across pages.
Learn more âFeatured cards stand out with special styling and multiple actions.
Common interface components:
blocks/:<!-- blocks/alert-info.html -->
<div class="alert alert-info">
<strong>âšī¸ Info:</strong> 💬alert-message
</div>
ssi-config.toml:[[step]]
emoji = "đ"
path = "blocks"
processing = "html"
📎widget-name:<section>
<h2>Notifications</h2>
📎alert-info
📎alert-warning
</section>
Structure your templates with meaningful HTML5 elements.
Keep content, structure, and presentation in separate files.
Create reusable blocks for common UI patterns.
Minimize file sizes and reduce HTTP requests.
Follow WCAG guidelines for inclusive design.
Design for mobile devices, then enhance for larger screens.