Is it possible and simple to change the content directory?


#1

Hi, I’d like to change where my md files are going to be stored. In this way I can have an empty and configured Hugo application and set the content directory one level above the HUGO directory.


#2

Hello @Vahn,

you can change the content directory with the contentDir in the config file.


#3

Thank you very much. Do you know also if it is possible, instead of using a directory, to pass a list of link of md`s to Hugo and obtain the same result?


#4

Could you elaborate this a bit more? Are you talking about a list of paths to content files?


#5

@Vahn Look into permalink settings, which you can use to set entire sections of content to a specific URL…


#6

This is the updated Hugo-docs Permalink URL: https://gohugo.io/content-management/urls/#permalinks.