Hello Hugo community!
I’m considering redefining the title
field in Hugo’s front matter as a map instead of a string:
title:
maintitle: "My Page Title"
subtitle: "Subtitle"
Is there a way of doing this without without causing errors in Hugo? When I try to access the maintitle field by .Title.maintitle
, I get the following error:
executing “_default/list.html” at <.Title.maintitle>: can’t evaluate field maintitle in type string
Thanks!