Usage
{{< blog [count = "3"] [skip = "1"] >}}Automatically generates blog post previews from your site’s blog content
Description
Dynamically creates blog post preview blocks by scanning your site’s blog content. Automatically includes featured images, reading time estimates, and post summaries with proper linking.
Parameters
indicates required parameter
count =
"number"1
Number of blog posts to display
skip =
"number"0
Number of recent posts to skip before displaying
page =
"object"REQUIREDcurrent page
Hugo page context (automatically provided)
Examples
Display latest blog post using hw shortcode
{{<hw t="blog">}}Use hw shortcode to show the most recent blog post with automatic formatting
Show three latest blog posts
{{<hw t="blog" count="3">}}Use count parameter to display multiple recent posts
Skip featured post and show next two
{{<hw t="blog" count="2" skip="1">}}Combine count and skip to show specific range of posts
Blog sidebar with recent posts
## Recent Articles
{{<hw t="blog" count="5">}}
{{<hw t="banner" text="Subscribe to our newsletter for weekly updates!">}}Perfect for sidebars and content sections with automatic updates
Featured blog section with custom layout
# Latest from Our Blog
{{<hw t="blog" count="1">}}
## More Articles
{{<hw t="blog" count="4" skip="1">}}
{{<hw t="children">}}Create sections by combining different count/skip combinations
Blog posts with contextual information
{{<hw t="accordion">}}
{{<hw t="acc-tab" header="Latest Updates">}}
{{<hw t="blog" count="3">}}
{{<hw t="caption" text="All blog posts are automatically updated with reading time estimates">}}
{{</hw>}}
{{<hw t="acc-tab" header="Archive">}}
{{<hw t="blog" count="10" skip="3">}}
{{</hw>}}
{{</hw>}}Organize blog content within accordions and other layout partials
Additional Information