mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
bd46ef6265
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.
17 lines
391 B
HTML
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
|
|
)
|
|
}}
|