Jekyll problems with publishing on GitPages - github

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.

Related

Github Blog page on jekyll always returns 404?

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

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.

GitHub public link format for accessing my website

I made a GitHub account. Ex: github.com/username
I made a repository (for a website) Ex: github.com/username/website
I'm new to GitHub, and initially, I thought the public access link to the website must http://website.github.io, but that doesn't work! All I'm getting is 404 no matter what I try.
I've tried the following examples:
username.github.io
username.github.io/username
username.github.io/website
username.github.io
website.github.io/website
username.github.com/website
but nothing works.
Finally, after an hour's worth of stumbling around, I realized that I would have to change my website's name to https://github.com/username/username so that http://username.github.io will work as the public link, Which I, obviously, don't want. I want http://website.github.io ideally or at least http://username.github.io/website
So, how do I make it work? How do my visitors access my website? Is it even possible to have it my way? If not, then do I have to make a new account for every new project? Won't that just defeat the purpose of a GitHub account?
So, how do I make it work?
https://username.github.io/projectname works for me, where username is of course my user name and projectname is the name of the repository. HTTP would probably be fine, but I checked the box to require HTTPS.
I want http://mywebsite1.github.io ideally
There's a "custom domain name" setting that purports to let you use your own domain, so you could something like http://myproject.mywebsite1.com/.
or at least http://UserName.github.io/mywebsite1
If mywebsite1 is the name of your project, you should be good to go -- that's the same format that worked for me above, except you're allowing http instead of just https.
Am I missing something crucial due to my day-0 newness on github?
It's possible that you've missed a step, or that you've restricted access to the project. It might help to go back to basics: forget everything you think you know and just follow their guide.
To create a website using GitHub pages you need to create an index.html file into any repository (No matter what name your repository is).
Then you need to publish your repository to be able to have your website.
First, go to your repository
Then go to Settings tab
Scroll down until you reach GitHub Pages
Then in source, you need to select your branch, in your case master branch
Then click on save and you are ready to go!!
Your repository will be online at http://username.github.io/yourRepoName
If your repository name is username.github.io your website will be live at http://username.github.io
Also, you need to know that you can only public static websites.
Understand GitHub Pages reading this.

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.