github-pages

Why GitHub pages on [username].github.io won't show?

拥有回忆 提交于 2019-12-03 20:41:47
I created repo [username].github.io, pushed first commit in gh-pages branch, have been waiting for 30 mins (GitHub says, it shouldn't take more than 10) and got 404 page trying to load my page. Checked out with different browsers, results are the same. Here's the way how I've done it: $ git clone http://github.com/RedCorbie/RedCorbie.github.io $ git add index.html $ git commit -m "Initial commit" $ git branch gh-pages $ git push origin gh-pages What's the problem? The documentation mentions : If you generated a User Pages site, the code lives in the master branch instead of the gh-pages branch

Hierarchical Categories in GitHub Pages

╄→гoц情女王★ 提交于 2019-12-03 19:50:16
问题 I'm using Jekyll on GitHub pages, and I want to have hierarchical categories like this: animals -> mammals -> cats -> _posts -> housecat.md, tiger.md animals -> mammals -> dogs -> _posts -> poodle.md, doberman.md animals -> reptiles -> lizards -> _posts -> iguana.md, chameleon.md I'd like users to be able to visit /animals and see a listing of every post from every category. But if they go to /animals/mammals , they'd only see mammals. If they go to /animals/mammals/cats , then they only see

Creating a website with Jekyll that has a subdirectory for the blog with paginated content

冷暖自知 提交于 2019-12-03 16:57:47
I am creating a website with Jekyll where the main page (jekyllsiteblogpaginated.com/index.html) displays no blog content. In addition, I would like to create a subdirectory for the blog where the main page, jekyllsiteblogpaginated.com/blog/index.html, displays the post in a paginated manner. I have pushed my example here http://bpatra.github.io/jekyllsiteblogpaginated . The github repository can be found here You may see in the repository branches that I have tested several organisation: creating a subdirectory blog with an index.html file or to add directly the blog.html file at root level.

HTTPS iframe inside a HTTPS page not working

流过昼夜 提交于 2019-12-03 16:53:50
问题 How can we use github pages embedded in an iframe correctly? I've hosted a website in firebase and it is using a custom domain over https, for example, https://www.example.com . This website uses react and other things, but for one route (the landing page one) I would like to use a static page hosted on github, for example https://example.github.io/page . So, to achieve this I've created an iframe inside the route https://www.example.com/page . The problem is I've been receiving the following

How to add submodule into gh-pages branch & build static pages correctly?

旧时模样 提交于 2019-12-03 16:44:23
问题 I have several project pages to maintain, and all of them use a same theme (I packaged it into a separate repo which called KYProjectPageTheme ). Just copy the KYProjectPageTheme 's entire folder to gh-pages branch's root dir & then push it to Github works very well. I'll receive a notification when static pages build successfully. However, I want to add KYProjectPageTheme as a submodule under gh-pages branch. This works well in my local machine. But when I pushed it to Github, I could not

How to point domain to site hosted on github pages?

亡梦爱人 提交于 2019-12-03 16:12:55
问题 I have created a website and placed it on github in the repo with USRNAME.github.com. First when I went to that website, my website displayed correctly. Then I bought a domain, lets say example.com. I placed a CNAME file in the repo, so now USRNAME.github.com forwards to example.com. I understand that I have to point my domain at the github server in order to allow my website to be displayed at example.com, but I'm not sure how. I created the site through gandi.net. I tried editing the zone

Permanent redirect from Github gh-pages

二次信任 提交于 2019-12-03 15:28:02
问题 I want to create a homepage and, for now, I think Github's pages features will serve my needs. However, I might want to switch to a more full-blown CMS/blog engine later on. Is it possible to serve a permanent redirect (HTTP 301) from Github pages in case I decide to move my homepage someplace else while preserving all the old URIs? 回答1: Best I can deduce is that Github has not yet added this. See Tekkub response from April 2010 re: adding it to the feature request list. Another message from

How to suppress blank line in Jekyll?

元气小坏坏 提交于 2019-12-03 15:09:58
问题 I use GitHub Pages for my blog, and am running into a problem with Jekyll. My post.html has a block like this: {% for testpost in site.posts %} {% four %} {% lines of %} {% processing %} {% goes here %} {% endfor %} The part in the middle doesn't matter. The important part is the end of the line which is outside of the {% %} markup, and is therefore rendered into the html. Since this is in a loop, it's putting about 1000 blank lines into the middle of by HTML page. It doesn't affect the

How do I push jekyll _site directory to gh-pages branch, and leave the source in master?

老子叫甜甜 提交于 2019-12-03 11:48:10
I have a basic jekyll site consisting of pages (not posts) but, because I wanted to sort the pages when I listed them, I had to use the Jekyll-Sort plugin (kinda weird sorting pages is not built in to jekyll). Because I'm using a plugin, I can't leverage GitHub's auto jekylling. So I'd like to push the source code of the project to the master branch and just the _site directory to the gh-pages branch. I can't figure out how to do this - I tried adding a git repo inside the _site directory to push that to gh-pages but every time I run jekyll it erases that entire directory and I lose the .git

Can I disable gh-pages hosting for my forked repo?

空扰寡人 提交于 2019-12-03 11:05:16
I've forked a repo that has gh-pages set as it's default branch. They're hosting it on a custom domain, so there is a custom CNAME file. I'm getting emails from Github with the following: The page build completed successfully, but returned the following warning: CNAME already taken: styleguides.io I don't need to host the site myself, the fork is just for making contribs back. I'm just looking for a way to disable gh-pages hosting for my fork, so I don't get these errors/emails anymore. I would suggest renaming the "branch" in your fork to something other than gh-pages, that should prevent it