Tidy up examples in docs

This commit is contained in:
Alex Haslam
2026-01-31 20:31:46 +00:00
parent 827fab1ef9
commit 7dec363f54
+14 -18
View File
@@ -121,17 +121,15 @@ The alert sign (`+` or `-`) is optional to control whether the admonition is fol
```md
{{</* accordion mode="open" separated=true */>}}
{{</* accordionItem title="What is Blowfish?" open=true */>}}
Blowfish is a fast, configurable Hugo theme. Heres a quick list:
- **Fast builds**
- Flexible layouts
- `config`-driven
{{</* badge */>}}New{{</* /badge */>}}
{{</* accordionItem title="Markdown example" open=true */>}}
This item demonstrates Markdown rendering:
- **Bold text**
- Lists
- `inline code`
{{</* /accordionItem */>}}
{{</* accordionItem title="Can I use shortcodes?" md=false */>}}
Yes. Content inside items can contain other shortcodes like alerts:
{{</* accordionItem title="Shortcode example" md=false */>}}
This item demonstrates shortcode rendering with <code>md=false</code>:
{{</* alert */>}}This is an inline alert.{{</* /alert */>}}
{{</* /accordionItem */>}}
@@ -139,17 +137,15 @@ The alert sign (`+` or `-`) is optional to control whether the admonition is fol
```
{{< accordion mode="open" separated=true >}}
{{< accordionItem title="What is Blowfish?" open=true >}}
Blowfish is a fast, configurable Hugo theme. Heres a quick list:
- **Fast builds**
- Flexible layouts
- `config`-driven
{{< accordionItem title="Markdown example" open=true >}}
This item demonstrates Markdown rendering:
- **Bold text**
- Lists
- `inline code`
{{< /accordionItem >}}
{{< accordionItem title="Can I use Markdown?" md=false >}}
Yes. Content inside items is Markdown and supports other shortcodes like alerts:
{{< accordionItem title="Shortcode example" md=false >}}
This item demonstrates shortcode rendering with <code>md=false</code>:
{{< alert >}}This is an inline alert.{{< /alert >}}
{{< /accordionItem >}}