gochowdown icon indicating copy to clipboard operation
gochowdown copied to clipboard

Can't make it work when I setup contentDir configuration

Open oliviernguyenquoc opened this issue 3 years ago • 3 comments

Hi,

I was wondering whether this theme support "contentDir" option in Hugo configuration file, or better Module config mounts.

I would like to use an external folder to version my recipes with my other markdowns.

Maybe this is not due to the theme but a miss-configuration on my side. What your guess on that ?

Thanks for your project. This is really cool.

oliviernguyenquoc avatar Feb 14 '21 21:02 oliviernguyenquoc

It likely should, but it's not something that I have ever tested so there it's possible that the theme isn't written correctly to use it. I'll try testing this scenario when I have a moment to do so.

seanlane avatar Mar 08 '21 12:03 seanlane

Thanks ! If you have a single hint on how to fix that, please let me know.

oliviernguyenquoc avatar Mar 08 '21 13:03 oliviernguyenquoc

Yeah, looks like it does support this, it's not theme dependent. Right now, there's no explicit option in the config.yml of the example site, but the default is just content. To change that, you can either run hugo with the contentDir flag: hugo --contentDir /path/to/your/content or set the option within the config.yml file like this

baseURL: https://example.com
disablePathToLower: true
languageCode: en-us
contentDir: /path/to/your/content
title: My Recipes
theme: gochowdown
...

seanlane avatar Mar 15 '21 02:03 seanlane