Hero banner : content in html, /content folder or site params?


I wanted to know what is the best way to make my hero banner dynamic on the home page.

I see three ways of achieving this :
1 - Using site params as seen here :

2 - Just leave it in the html partial like hugo docs

3 - Or what I tried is add ./content/hero/hero.md and then used toml variables to add the content.

I saw a couple of times 2 being used in the themes, but I’m wondering why not use content

Depends on what (and how many) variables you need, but I would recommend keeping it more in line with other content. Just add your front matter fields and content to content/_index.md.