Hello.
I want to create project structure like this:
├── stylesheet/
├── javascript/
├── blog/ ----------> username.github.io/blog/ (hexo w/ it sources and generated pages)
├── index.html -----> username.github.io/index.html
so what are the ways to do this?
Create blog repo with Hexo and put generated pages to blog:gh-pages branch.
GitHub will serve them publically at username.github.io/blog/.
In your main site, you can use ONE of these deployment methods:
username.github.io/blog/ (blog:gh-pages branch)username.github.io, you don't even have to create the blog/ folder/route in the main site.blog/ of the main site (for other kind of static deployments)
Most helpful comment
Create
blogrepo with Hexo and put generated pages toblog:gh-pagesbranch.GitHub will serve them publically at
username.github.io/blog/.In your main site, you can use ONE of these deployment methods:
username.github.io/blog/(blog:gh-pagesbranch)This is automatically done if your main site is
username.github.io, you don't even have to create theblog/folder/route in the main site.blog/of the main site (for other kind of static deployments)