Permalink question


I am currently considering migrating my Pelican blog to Hugo.

I wish to have permalinks this way : /year/months/day/title/. Simple no ? So I have this in config.toml :

Permalinks: post: /:year/:months/:day/:title/

But I always receive this when launching hugo:

Error: While parsing config: (4, 1): unexpected token. Line 4 is just Permalinks:

That is not valid TOML, this is:

  pol = "/:year/:month/:day/:slug/"
  fun = "/:year/:month/:day/:slug/"
  art = "/:year/:month/:day/:slug/"
  tec = "/:year/:month/:day/:slug/"
1 Like

Indeed it was not…

The doc should be updated !

Does the doc say it is TOML?

The permalink doc doesn’t mention that permalinks need to be defined in TOML when set in the config.toml file.

Actually, the config.toml file is not mentioned at all on that page (it should be, I think), and the example from the doc page is the same invalid TOML format that 22decembre tried to use.

  post: /:year/:month/:title/

Edit: I see it’s fixed on the Docs:

1 Like