Usage
{{< block [header = "Block Title"] [description = "Block content"] [src = "/images/photo.jpg"] [srcOn = "left"] [meta = "Additional info"] >}}Creates flexible content blocks with optional media and customizable layouts
Description
Creates versatile content blocks with optional media (images/videos) that can be positioned left or right. Perfect for feature descriptions, product showcases, or any content that benefits from visual enhancement.
Parameters
indicates required parameter
header =
"string"
Block title/header text
description =
"string"
Main block content (processed with markdownify)
inner =
"string"
Additional content appended after description (processed with markdownify)
src =
"string"
Path to image or video file
srcOn =
"string"left
Position of media: ’left’ or ‘right’
Possible values: left or right
Possible values: left or right
srcGrid =
"string"zero wide
Grid width for media column (e.g., ‘four wide’)
txtGrid =
"string"sixteen wide
Grid width for text column (e.g., ’twelve wide')
meta =
"string"
Metadata or additional information displayed below header
headerLink =
"string"
URL to make the header clickable
id =
"string"
HTML ID for the block section
Examples
Basic content block using hw shortcode
{{<hw t="block"
header="Welcome to Our Platform"
description="Discover powerful tools and features designed to streamline your workflow and boost productivity.">}}Use hw shortcode with header and description for simple content blocks
Feature block with left-aligned image
{{<hw t="block"
header="Advanced Analytics"
description="Get deep insights into your data with our comprehensive analytics dashboard featuring real-time metrics and custom reporting."
src="/images/analytics-dashboard.png"
srcOn="left"
meta="Available in Pro plan">}}Combine text and media with metadata for feature descriptions
Product showcase with right-aligned video
{{<hw t="block"
header="See It In Action"
description="Watch how our platform transforms complex workflows into simple, automated processes."
src="/videos/product-demo.mp4"
srcOn="right"
headerLink="/demo">}}
**Key Features:**
- Drag-and-drop workflow builder
- {{<hw t="include" from="features/automation.md">}}
- Real-time collaboration tools
{{</hw>}}Use inner content for additional details and include external content
Team member profile block
{{<hw t="block"
header="Jane Smith"
description="Senior Software Engineer with 8 years of experience in full-stack development and team leadership."
src="/images/team/jane-smith.jpg"
srcOn="left"
meta="Engineering Team Lead"
headerLink="/team/jane-smith">}}
**Expertise:**
- React & Node.js development
- DevOps and CI/CD
- Agile methodologies
{{<hw t="caption" text="Connect with Jane on LinkedIn">}}
{{</hw>}}Profile blocks work great with personal images and detailed information
Documentation block with custom grid
{{<hw t="block"
header="API Integration Guide"
description="Step-by-step instructions for integrating our REST API into your application."
src="/images/api-diagram.svg"
srcOn="right"
srcGrid="six wide"
txtGrid="ten wide"
id="api-guide">}}
{{<hw t="table">}}
{{<hw t="thead">}}
{{<hw t="trth">}}Endpoint{{</hw>}}
{{<hw t="trth">}}Method{{</hw>}}
{{<hw t="trth">}}Description{{</hw>}}
{{</hw>}}
{{<hw t="tbody">}}
{{<hw t="tr">}}
{{<hw t="td">}}/api/users{{</hw>}}
{{<hw t="td">}}GET{{</hw>}}
{{<hw t="td">}}List users{{</hw>}}
{{</hw>}}
{{</hw>}}
{{</hw>}}
{{</hw>}}Custom grid sizing and nested tables for technical documentation
News article block with featured image
{{<hw t="block"
header="Company Reaches 1 Million Users"
description="We're excited to announce that our platform has reached the milestone of serving over one million active users worldwide."
src="/images/news/milestone-celebration.jpg"
srcOn="left"
meta="Published March 15, 2024"
headerLink="/news/1-million-users">}}
This achievement represents years of hard work and dedication from our team,
and most importantly, the trust our users have placed in our platform.
{{<hw t="include" from="news/user-testimonials.md">}}
{{</hw>}}News and article blocks benefit from featured images and timestamps
Additional Information