Quickstart error because of echo "theme = 'ananke'" >> hugo.toml

Hello,

I’m on Windows 11, I use Powershell to try Hugo.
I think there is a mistake with the command
echo "theme = 'ananke'" >> hugo.toml
because the file generated look like

baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
"theme = 'ananke'"

and result in error with command

hugo server

Error: command error: failed to load config: “C:\Developpements\testhugo\hugo.toml:4:19”: unmarshal failed: toml: expected character =

if I manually change the config file like this

baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = 'ananke'

or change
echo "theme = 'ananke'" >> hugo.toml
by
echo theme = 'ananke' >> hugo.toml
it works like a charm

Refer my PR Update quick-start.md by seb49 · Pull Request #2674 · gohugoio/hugoDocs · GitHub

Regards

I just tested this again with PowerShell 7.4.4.

Works great.

My bad, I used Windows Powershell by mistake

@Microsoft, what the hell the use the almost same name :thinking:

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