# Permalink question

**URL:** <https://discourse.gohugo.io/t/permalink-question/6189>\
**Category:** support\
**Created:** [April 15, 2017, 9:20am UTC](https://discourse.gohugo.io/t/permalink-question/6189 "2017-04-15T09:20:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![22decembre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/22decembre/32/4795_2.png) [@22decembre](https://discourse.gohugo.io/u/22decembre)\
**Post date:** [April 15, 2017, 9:20am UTC](https://discourse.gohugo.io/t/permalink-question/6189/1 "2017-04-15T09:20:38Z")

</div>

Hi.

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:

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [April 15, 2017, 9:38am UTC](https://discourse.gohugo.io/t/permalink-question/6189/2 "2017-04-15T09:38:29Z")

</div>

That is not valid TOML, this is:

```auto
[permalinks]
  pol = "/:year/:month/:day/:slug/"
  fun = "/:year/:month/:day/:slug/"
  art = "/:year/:month/:day/:slug/"
  tec = "/:year/:month/:day/:slug/"

```

---

<div class="post-metadata">

**Author:** ![22decembre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/22decembre/32/4795_2.png) [@22decembre](https://discourse.gohugo.io/u/22decembre)\
**Post date:** [April 15, 2017, 10:24am UTC](https://discourse.gohugo.io/t/permalink-question/6189/3 "2017-04-15T10:24:25Z")

</div>

Indeed it was not…

The doc should be updated !

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [April 15, 2017, 10:35am UTC](https://discourse.gohugo.io/t/permalink-question/6189/4 "2017-04-15T10:35:20Z")

</div>

Does the doc say it is TOML?

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [April 15, 2017, 10:57am UTC](https://discourse.gohugo.io/t/permalink-question/6189/5 "2017-04-15T10:57:43Z")

</div>

The [permalink doc](https://gohugo.io/extras/permalinks/) 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.

```
permalinks:
  post: /:year/:month/:title/

```

**Edit** : I see it’s fixed on the Docs: [https://gohugo.io/content-management/urls/#permalinks](https://gohugo.io/content-management/urls/#permalinks)
