Issue with new posts on Windows 10 Japanese Locale

Hi all,

I have followed the instruction for deploying my first page using hugo,
as described at

At Step 4: Add Some Content of the above quick start I get the following error

hugo new posts/
Error: “C:\Users\far48205\quickstart\config.toml:4:1”: unmarshal failed: Near line 4 (last key parsed ‘theme =“ananke”’): expected key separator ‘=’, but got ‘\r’ instead

My hugo env is as below

Hugo Static Site Generator v0.79.0/extended windows/amd64 BuildDate: unknown

I am using Windows 10 Japanese.

Thanks for your help.


The error is relatively clear: in file config.toml on line 4, either remove the line and write by hand or remove what looks like a space in front of the = because it does not seem to be a proper space. the line should read


With " and not “typographic quotes” - use "and" — not “and”

The issue because of using echo command as show in the quickstart

echo 'theme = "ananke"' >> config.toml

Removing the single quotes and spaces before and after = as below worked.

echo theme="ananke" >> config.toml