asw/layouts/shortcodes/callout.html
Vigilio Desto 267a7b1bc8
Port homepage, posts section, shortcodes; update hugo.toml menus
- content/_index.md: homepage with site description and callout examples
- content/posts/asw-vocabulary.md: ASW data-* attribute vocabulary reference
- content/posts/getting-started.md: ASW-Hugo setup guide (updated URLs)
- hugo.toml: add params, taxonomies, menus (main + docs sidebar), ToC settings
- layouts/partials/nav.html: dynamic Hugo menu rendering (was hardcoded)
- layouts/shortcodes/callout.html, wikilink.html: ported from asw-hugo theme

Closes: asw#17, asw#13, asw#11, asw#16
28 pages build clean, deploy confirmed at port 8000.
2026-04-10 18:38:31 +02:00

16 lines
426 B
HTML

{{- /*
callout shortcode — wraps content in an ASW callout block.
Usage:
{{< callout note >}}
Content here. Markdown is rendered.
{{< /callout >}}
First positional param: callout type.
Valid types: note, warning, tip, info (maps to ASW data-callout attribute).
Default: note
*/ -}}
{{- $type := .Get 0 | default "note" -}}
<aside data-callout="{{ $type }}">
{{ .Inner | markdownify }}
</aside>