beautifulhugo icon indicating copy to clipboard operation
beautifulhugo copied to clipboard

[Question] How to change permalinks

Open yamila-moreno opened this issue 5 years ago • 2 comments

Hi! I'm using your theme in my own blog, ¡thanks for sharing!

I was wondering if it's possible to change the permalinks, from: {{ absoluteURL}}/post/{{ slug }} to {{ absoluteURL}}/year/month/{{ slug }}

Thanks in advance!

yamila-moreno avatar Oct 11 '19 15:10 yamila-moreno

Hi @yamila-moreno

I haven't tried this below yet. Let me know if this works for you in config.toml

[Permalinks]
  blog = "/blog/:year/:month/:day/:title/"
  #blog = "/blog/:year/:month/:day/:filename/"
  #blog = "/blog/:year/:month/:title/"

Cheers

ibnunowshad avatar Nov 29 '19 13:11 ibnunowshad

I tried my own above suggestion and it works for blog = "/blog/:title/"

ibnunowshad avatar Dec 02 '19 07:12 ibnunowshad