Hey guys, there are a way to show a specific information based on a button click in the same page in hugo?

I´m trying to show data based on a selected option above, but I don´t know how to do this or even if this is possible in hugo, someone who can help me?

I mean, I have 3 options and I want to show information based on the selected option.

with hugo the common way is to utilize

  • CSS drop down or
  • javascript

and add the needed styles or jsvascript when building the page

And hit “try it yourself” for the code and to see what it does.

You can drop it into a markdown file and then modify it to your needs.

You probably also need to add

[markup]
  [markup.goldmark]
    [markup.goldmark.renderer]
      unsafe = true

to your hugo.toml file for html to be executed inside a markdown file