Files
hugo/layouts/shortcodes/note.html
T
Joe Mooring bd46ef6265 theme: Implement blockquote render hook
Supports basic alert syntax:

> [!NOTE]
> Useful information that users should know, even when skimming content.

> [!TIP]
> Helpful advice for doing things better or more easily.

> [!IMPORTANT]
> Key information users need to know to achieve their goal.

> [!WARNING]
> Urgent info that needs immediate user attention to avoid problems.

> [!CAUTION]
> Advises about risks or negative outcomes of certain actions.
2025-03-07 18:50:03 -08:00

17 lines
391 B
HTML

{{/* prettier-ignore-start */ -}}
{{- /*
Renders a callout.
@example {{< note >}}
Some descriptive text here.
{{< /note >}}
*/ -}}
{{/* prettier-ignore-end */ -}}
{{- $text := .Inner | strings.TrimSpace | .Page.RenderString (dict "display" "block") }}
{{- partial "layouts/blocks/alert.html" (dict
"color" "blue"
"icon" "exclamation-triangle"
"text" $text
)
}}