Github Blog page on jekyll always returns 404? - github

I used jekyll theme. I complied my page on my local. Then i created a repo. I pushed to "_site" to the repo. But I got error about page. I can't reach the blog. It returns 404. You can check at the below.
https://github.com/capitansec/cyberclub.github.io
http://cyberclub.github.io/
What shoul I do?

If you look at the Github pages documentation, you will see that from profile capitansec, you can only create a user/company website at URL capitansec.github.io and not at cyberclub.github.io. To do this, you would have to create a new profile called cyberclub. The other two options that you have for the scenario above is to:
Use capitansec.github.io as your URL and rename the repository above appropriately
Register a different domain with your registrar and use this as a custom domain as described here

Related

Github Pages not showing up

https://github.com/jchu4483/auth0
I'm following Github's tutorial to host a Github Page. I creating the repo and set the Github Page to track my main branch and published the Page.
Github says my site should be published at http://test-blog-on-qa.com/auth0/ but the site doesn't load. As a side note: Why would Github choose that weird domain name(test-blog-on-qa)?
I've chosen a theme(Jekyll), pushed an empty commit to rebuild but nothing works. This should be very simple so I'm confused as to what could be wrong?
You are using the Github Custom Domain for your site chu4483.github.io.
Have a look at: https://github.com/jchu4483/jchu4483.github.io/blob/master/CNAME
That's why test-blog-on-qa.com is used as the domain name automatically.

Custom domain for GitHub repo page

I have set up custom domain for my repo project page on DOMAIN.COM. But how can set it as DOMAIN.COM/REPO instead?
According to the help page, this should be the default.
Here's the response from Github. I don't think this is well-documented on the help page (or I missed it).
To do that, your DOMAIN.COM should be set in your primary repo, i.e. the one name username.github.io. This would be our main repo. Any other repo in our profile for which we've setup GitHub Pages, would start serving at DOMAIN.COM/repoName
You can read more here: [https://help.github.com/en/github/working-with-github-pages/about-github-pages#types-of-github-pages-sites]
A discussion from Stackoverflow about this: [Can I create more than one repository for github pages?

Jekyll problems with publishing on GitPages

I have just created my first jekyll page, trying to use github.io
What am I doing wrong, as the page seems to serve correctly on my local machine yet it does not on the GitPages.
If you want to use a github.io URL, the exact URL of your GitHub page depends on the name of your repository.
This is explained here in the GitHub Page documentation:
User, Organization, and Project Pages
If you want your website URL to be https://cstml.github.io/ (called "user page" in the docs), the repository must be named username.github.io, i.e. in your case:
https://github.com/cstml/cstml.github.io
If you want your website URL to be https://cstml.github.io/some-sub-dir (called "project page" in the docs), the repository must be named some-sub-dir, i.e. in your case:
https://github.com/cstml/some-sub-dir
In my search for trying to solve it I have changed the name of the repository to my cstml.github.io GitHub-pages and that seems to have fixed it. Don't really understand why that is at the moment but it seems to be working.

Is there a way to remove repository name from github page link?

I created a page for a github repository following these instructions:Getting Started with GitHub Pages. Worked perfectly, the page is already hosted.
But I would like to change the page URL, This is the currently URL: http://myusername.github.io/repositoryName/
Is there any way to remove the repository name? (http://myusername.github.io/)
I've seen the articles to configure a custom domain, but I think that's not the case.
To remove the repository name, you'll need to make it a User Page (or an Organization page). Create a repository named myusername.github.io, and commit your content to the master branch. See this help page for more information.

How to Setup Github Pages for account?

I am trying to figure out how to setup github pages for account rather than for a repository.
E.g
I want the blog address to be like this:
xxx.github.io rather than xxx.github.io/repo. Therefore when i go to xxx.github.iothe static markdown pages should appear rather than a 404 page.
Thanks.
You're looking for Pages' user / organization sites. The official site has a good getting started guide, but the first bit is the most important one:
Create a repository
Head over to GitHub and create a new repository named username.github.io, where username is your username (or organization name) on GitHub.
If the first part of the repository doesn’t exactly match your username, it won’t work, so make sure to get it right.
So, instead of creating a gh-pages branch as you would for a project site, you must create a repository that matches your user name.