Skip to content
This documentation is a live feature demo. See the feature guide.
Components

Components

This is the live reference for features owned by hugo-styles. Each example is rendered here; open the adjacent Use it block to copy its source. Theme-level features live in the Hextra feature guide.

Challenge, hint, and solution

Challenge

Choose a reproducible cut

Keep the first pass small.

Pick one event-selection threshold and explain what it removes.

Need a hint?
Start with a transverse-momentum threshold.
Show solution
For this toy sample, use pT>25GeVp_T > 25\,\mathrm{GeV}, then record the value next to the result.
Use it
{{< challenge title="Choose a reproducible cut" subtitle="Keep the first pass small." >}}
Pick one event-selection threshold and explain what it removes.

{{< hint >}}Start with a transverse-momentum threshold.{{< /hint >}}
{{< solution >}}Use `p_T > 25 GeV` and record it.{{< /solution >}}
{{< /challenge >}}

Callout palette

Note
Supporting context that belongs near the main path.
Prerequisite
What learners need before starting.
Checklist
A short set of checks before moving on.
Discussion
A prompt for comparing approaches.
Instructor perspective
A brief experience or facilitation observation.
Warning
A likely mistake with meaningful consequences.
Caution
A migration or workflow edge case worth checking.

Use it
{{< callout type="note" title="Note" >}}Supporting context.{{< /callout >}}
{{< callout type="prereq" title="Prerequisite" >}}Required setup.{{< /callout >}}
{{< callout type="checklist" title="Checklist" >}}Checks to complete.{{< /callout >}}
{{< callout type="discussion" title="Discussion" >}}Compare approaches.{{< /callout >}}
{{< callout type="testimonial" title="Instructor perspective" >}}An experience.{{< /callout >}}
{{< callout type="warning" title="Warning" >}}A likely mistake.{{< /callout >}}
{{< callout type="caution" title="Caution" >}}An edge case.{{< /callout >}}

Audience-aware content

Supporting pages can place the selector exactly where readers need it. Episode and All-in-One pages include it automatically.

Learner
Learners see the task, expected inputs, and enough context to proceed.
Instructor
Instructors see pacing notes, debrief prompts, and facilitation context.
Use it
{{< lesson/audience-toggle >}}

{{< learner >}}Learner-facing guidance.{{< /learner >}}
{{< instructor >}}Facilitation guidance.{{< /instructor >}}

Set the initial view in hugo.toml:

[params.lesson]
  defaultView = "learner" # or "instructor"

The precedence is a valid ?view= value, a saved choice, this configured default, then learner.

Glossary and profile links

Inline references resolve to normal content pages: Formative Assessment and Workshop Host .

Use it
{{< glossary formative-assessment >}}
{{< profile workshop-host >}}

Lesson image

lesson/image accepts page-bundle resources and the shared static/{fig,files,data,code} paths. It requires src and meaningful alt text and follows the global or per-page image-zoom setting.

Lesson content flowing into facilitation and reusable resources.
Use it
{{< lesson/image
  src="/fig/lesson-flow.svg"
  alt="Lesson content flowing into facilitation and reusable resources."
  width="560"
  class="hx:rounded-xl"
>}}

style remains available for legacy content, but prefer width and class. Disable zoom for one page with imageZoom = false in its front matter.

Live lesson metadata

The configured lesson title is Hugo Styles. This value comes directly from params.lesson, so content does not need to duplicate it.

Use it
{{< lesson/meta "title" >}}
{{< lesson/meta "tagline" >}}
{{< lesson/meta "description" >}}
{{< lesson/meta "siteTitle" >}}

Generated lesson resources

The homepage already renders the episode overview, schedule, and authors. The same episode metadata also drives:

Use it on a homepage
{{< lesson/overview >}}
{{< lesson/schedule title="Schedule" >}}
{{< lesson/authors title="Authors and Contributors" >}}