SohanChy / Lipi

A simple static blog generator.
http://sohanchy.github.io/Lipi
MIT License
130 stars 15 forks source link

TOML key case #4

Closed guyou closed 7 years ago

guyou commented 7 years ago

In order to load my config.toml, I had to change Lipi code to convert TOML keys to lowercase (at least for title, baseURL...)

What is the expected case for TOML configuration? Reading Hugo documentation, it seems to expect lower case.

Is the TOML case insensitive?

SohanChy commented 7 years ago

I have totally forgotten this. But https://gohugo.io/getting-started/configuration/ Seems to have keys in lower key case for toml. So for now we should assume that TOML is case sensitive. I will look into this further.

If you have fixed the code please open another PR :)

SohanChy commented 7 years ago

Merged and fixed thanks to @guyou