Unmarshal failed: toml: key theme is already defined

Hey guys! I am having trouble to create my website with my Mac. Here is my code:

‘hugo server’

then it comes to a error:

‘Error: command error: failed to load config: “/Users/myname/quickstart/hugo.toml:1:1”: unmarshal failed: toml: key theme is already defined’

how can I fix this?

show your hugo.toml file.

Here is my hugo.toml file:

Screenshot 2023-09-25 at 14.00.16

Why not simply remove two of the identical theme entries?

1 Like