Hey guys,
I am new here and I just made some good research on how to achieve this. There were some good suggestions couldn’t find exactly how to achieve this.
Here are some other questions that treat the same situation but without much of a clear way to achieve it.
Integrate Two Themes - #7 by tania
In here the solution was just to split it into two websites, which is not what I’d go for. How to have two themes for different sections of a site? - #7 by simulacra10
The right solution for what I need is what is briefly described by @moorereason
in here Section vs Separate Site for two different themes - #14 by edison
What I Want To Achieve
What I want to achieve is to have a theme set for the whole website
domain.com
and another theme for
domain.com/notes
To be specific, these are the themes I’m using
Main Theme
https://themes.gohugo.io/themes/hugo-theme-color-your-world/ as the main theme.
Secondary Theme
And This one GitHub - jethrokuan/cortex: Hugo Theme for my Braindump for domain.com/notes
here’s the live demo for it https://braindump.jethro.dev/
Reason to Use Two Themes
The main reason to do this in my case, is due to the drastically different way that the secondary theme deals with the organization of links and back-links which is exactly what I need, it’s a clean view without the menus in the main theme. Yet for the main website the main theme is what I need for every other page.
The way to achieve this is what’s described in here
the way I’d like to achieve this is to generate two different hugo directories, one with each theme, and then somehow deploy them together under one root directory.
Alternative Solutions that Wouldn’t Work For My Needs
Using a sub domain would be an easier way to solve it, but I’d like to avoid it since I’d prefer to have all the traffic from google to my main site.
Two Websites
Same as above, it would split the focus of the traffic into different sites.
Tools Used To Publish
I’ll be using gitlab to host and netlify to publish it with a custom domain name.
What I don’t know is how can I combine both of this directories into one website.
An repository example doing something similar would really help, since what I struggle with is to know how this would look like in practice.
Thank You
Any tips to point me in the right direction would be greatly appreciated thank you!