Skip to content
John's Blog
English

Search

Searching… No matching pages. Matching pages are listed below. Search is unavailable. Please try again.

Modern Components, Callouts, and Responsive Images

Using semantic callouts, badges, disclosures, inline text elements, column splits, and responsive bundle images in posts.

  • John Doe
  • 2 minutes
A wooden boat anchored over clear coastal water
Authoring Rich Content Part 2 of 3
On this page

Enabled modern blog pages unlock Toha’s semantic component shortcodes alongside classic theme shortcodes, sharing exact visual tokens across light and dark modes.

Callouts & legacy alert compatibility

Modern callouts communicate status clearly without heavy visual noise. Use {{< callout >}} with info, success, warning, or danger tones, or pair them with inline badge chips: Modern UI Zero Bootstrap .

Existing legacy posts using {{< alert >}} continue to work automatically on modern pages:

Disclosures & inline semantics

Interactive elements stay accessible without custom JavaScript. Press Cmd+K (or /) to search posts anytime, highlight key behavior with zero-runtime disclosures, or annotate domain terms like SSG.

Show minimal page front matter for modern blog posts
title: "My Engineering Note"
date: 2026-10-24
categories: ["Authoring"]
tags: ["Components", "Shortcodes"]
series: ["Authoring Rich Content"]
series_weight: 20

Responsive bundle images & wrapping

Images co-located in the post folder resize cleanly and support centered or floated layouts alongside vertical spacing (vs).

Wooden boat in calm waterFloated thumbnail beside prose

Bundling images directly next to index.md eliminates broken root paths across subpath deployments and multilingual routes. When paired with float="right", prose wraps beside the image on desktop viewports and stacks naturally on narrow screens without clipping or horizontal overflow.

Side-by-side column comparisons (split)

Two-column comparison

Static Pre-rendering

Hugo generates semantic HTML, responsive image variants, and search JSON at build time with predictable performance.

Progressive Enhancement

Alpine and native <dialog> elements enhance keyboard search, disclosures, and code-block copy actions cleanly.

Three-column summary

Accessible

Semantic landmarks, focus-visible rings, and screen-reader statuses.

Themeable

Balanced surface tokens adapt smoothly between light and dark themes.

Portable

Write standard Markdown once and switch layouts from hugo.yaml.

Continue to Rich Media & Diagrams