Using hugo, I am trying to make a webpage with a collapsible section . In html, this would be done in the following way:
<details>
<summary>Click to expand!</summary>
Hidden explanation
</details>
hugo
uses markdown to add content to the website. I think it's very likely there is a way in hugo
to add a collapsible section in the markdown
file, because I found some info online to add collapsible sections in markdown in general.
However, I couldn't make this work in the specific context of hugo
.
In other words, simply adding that piece of html code in markdown didn't work. That makes sense, as I am assuming Hugo's markdown engine does not process raw html.
How can I use this piece of html code in hugo?