zwbetz-gh / cupper-hugo-theme

An accessibility-friendly Hugo theme, ported from the original Cupper project.
https://cupper-hugo-theme.netlify.app/
MIT License
301 stars 190 forks source link

mysite\config.toml:1:1": unmarshal failed: Near line 0 (last key parsed ''): bare keys cannot contain ':' #39

Closed kairoslab closed 4 years ago

kairoslab commented 4 years ago

I apologize if this is truly a naive oversight.

I copied the config.yaml code to config.toml on Virtual Studio Code under my new hugo site; when I run hugo server I get this error

\config.toml:1:1": unmarshal failed: Near line 0 (last key parsed ''): bare keys cannot contain ':'

I'm working from Command Prompt as Administrator on Windows. The theme has been cloned to the site folder, which is on my Desktop. The Demo Site seems to run fine on my local server.

Let me know if you need more information. I really appreciate any help, and the fact that you created such a great theme.

zwbetz-gh commented 4 years ago

You are getting that error because you are trying to use YAML syntax in a TOML file.

I would recommend using the sample config.yaml file as-is, or converting the YAML syntax to TOML.

kairoslab commented 4 years ago

Thank you!