Keep generated static assets in source folder
Hi, i'm wondering how to generate static assets such as css, js, images to a different folder structure than what's in for instance the landscape theme:
├─ source
└─ css
└─ js
Generates to:
├─ css
└─ js
Is there a way to keep those assets in a folder when generated? Ideally i'd like to get to this for both theme and generate public folder structure:
├─ static
└─ css
└─ js
└─ etc...
You can create a new folder named static in source, to make the structure look like this
├─ souce
└─ static
└─ css
└─ js
└─ etc…
Just need to modify your ref routes in your theme.
But can I rename the source folder, to say assets? I assume source_dir is meant only for the source folder in a hexo project root?
yes, only source.