Mini Blog

Shortcodes & HTML Elements

Mini includes shortcodes and CSS classes for content that goes beyond standard Markdown.

Article selections

Use featured-posts to introduce readers to selected articles in your chosen order. Set their content paths in hugo.toml; the same list resolves to each language’s titles and URLs:

[params]
featuredPosts = ["/blog/theme-features", "/blog/under-the-hood", "/blog/hello-world"]

Place this shortcode in your homepage _index.md:

{{< featured-posts archive="/blog/" archiveLabel="All articles" >}}

To show recent articles by date instead, use latest-posts count="3". Both shortcodes support the same optional archive link.

Columns

columns stacks blocks on mobile and places them side by side above 48rem. Use ratio="3:2" for 60/40, ratio="2:3" for 40/60, or omit it for equal columns:

Latest articles

Projects

Hugo Mini

The theme used by this demo. GitHub

Preview an unknown counter

An unknown value reserves space until the counter is ready.

Reading list

The reading-list shortcode renders a localized shelf from one data file.

BookRead
Through the Looking-Glass
Lewis Carroll · 1871
Alice’s Adventures in Wonderland
Lewis Carroll · 1865

Wide images

Choose wide=true to center an illustration across both margins, up to its source width or 960 px. Its caption is centered beneath it in italic. On mobile and in print, images fit the ordinary column. Local raster dimensions are automatic; SVGs and remote images need explicit width and height.

{{< image src="/images/wide-chart.svg" alt="Sample line chart" width=1200 height=600 wide=true caption="A wide illustration with a caption at the reading measure." >}}
Sample line chart
A wide illustration with a caption at the reading measure.

Caption

The caption shortcode adds a smaller, upright, start-aligned image description. Use it after images or code blocks:

![Photo](/path/to/image.png)
{{< caption >}}Figure 1 — description of the image{{< /caption >}}

Figure 1 — place an image above this caption

For a short author/source attribution, use kind="credit" to select muted italic text aligned to the end:

{{< caption kind="credit" >}}Photo: the author{{< /caption >}}

Photo: the author

Plug (Section Divider)

The plug shortcode inserts a decorative “* * *” divider — useful for separating sections within a long post:

{{< plug >}}

Pull Quotes

Use the callout shortcode for a block quotation. Its content supports Markdown. This demo enables editorialQuotes = true, so Markdown quotes and callouts share the same style:

{{< callout >}}Your pull quote text here.{{< /callout >}}

“A good blog theme should be invisible. The reader should see the content, not the design.”

Underline

The .beauty-emphasis CSS class creates a native wavy underline — useful for highlighting key phrases:

<span class="beauty-emphasis">highlighted text</span>

This text has a decorative underline — it works well for emphasis that stands out more than italic but less than bold.

Button

The .button CSS class creates a styled call-to-action button with a gradient background:

<a href="/blog/" class="button beauty-button">Read Articles</a>

Read Articles

Combining Elements

Markdown HTML

For writers — Mini keeps things simple. Write in Markdown, add front matter flags for math or diagrams when needed, and let the theme handle the rest.

“Simplicity is the ultimate sophistication.”

Attributed to Leonardo da Vinci