Hexo: Set up & deploy hexo into subdirectory on GitHub pages (User & Organization Pages)

Created on 4 Mar 2015  ·  1Comment  ·  Source: hexojs/hexo

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?

question

Most helpful comment

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:

  • link/redirect to username.github.io/blog/ (blog:gh-pages branch)
    This is automatically done if your main site is username.github.io, you don't even have to create the blog/ folder/route in the main site.
  • put the generated pages directly under blog/ of the main site (for other kind of static deployments)

>All comments

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:

  • link/redirect to username.github.io/blog/ (blog:gh-pages branch)
    This is automatically done if your main site is username.github.io, you don't even have to create the blog/ folder/route in the main site.
  • put the generated pages directly under blog/ of the main site (for other kind of static deployments)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  ·  3Comments

cxgreat2014 picture cxgreat2014  ·  3Comments

jakeg picture jakeg  ·  3Comments

demurgos picture demurgos  ·  3Comments

jo4x962k7JL picture jo4x962k7JL  ·  3Comments