Closed alvindizon closed 4 years ago
Hey @alvindizon - here's the gh-pages
branch as part of this repo that pages uses. That will give you the structure so follow along with the rest of the docs to set up that branch on your repo. I can't remember the exact steps but I simply followed the docs so I think that approach should work for you. Hope this helps.
So I just learned that there's a distinction between user pages and project pages. User pages are the ones that use your Github username(which is what I want), and can only publish from master
, while project pages use the gh-pages
branch. What worked for me is to just create a separate branch for modifying the index.html
and others, which I named dev
, and in the master
branch, I just deleted everything and replaced them with the contents of the dist
folder.
Awesome, glad you got it sorted.
How do I deploy this for my own Github Page, or in other words, see the actual devfolio site when accessing
https://<your_git_username>.github.io
? It's not clear especially for those who are new to web development/those who just want to have a Github Pages up and running quickly. According to Github Pages you need to haveindex.html
at your root directory, but for this template it's insidesrc/dist
, and trying to moveindex.html
would mess things up. I managed to do this hack but it involves a redirect.