Doc

Accordion

Accordion Sugam Pokharel

The accordion shortcode creates expandable sections. Each section is split with <!--accordion--> and can define title: and content:.

Shortcode Example

HTML
1
2
3
4
5
6
7
8
9
{{< accordion caption="Accordion demo" >}}
title: Installation
content:
Install Hugo Extended and run `npm install`.
<!--accordion-->
title: Build
content:
Run `npm run build` before deployment.
{{< /accordion >}}

Actual Use

Accordion demo

Share this article

  • X
  • Facebook
  • LinkedIn
  • Reddit
  • WhatsApp
  • Telegram
  • Pinterest
  • Bluesky