Is it necessary to make Params nested within Front Matter?

Hello, friends! I’m looking at the documentation: Params | Hugo
There is a page variable called Params, with which I can access custom parameters from Front Matter.
My question is - is it required to nest custom parameters within dedicated Params block into Front Matter?
E.g.:

params:
   author:
   bio: 
etc

Or can I just write author directly within my front matter and access it like Params.author without nesting it within an extra params block?

For now you can do both. That may not be the case in the future. Place your parameters under the params key, just as you would in your site configuration.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.