github-pages

301 redirect for site hosted at github?

天大地大妈咪最大 提交于 2019-11-28 16:58:21
Here's a Github repository of mine: https://github.com/n1k0/casperjs There's a gh-pages branch to hold the project documentation, which is basically the project website: https://github.com/n1k0/casperjs/tree/gh-pages This branch setups the documentation site at http://n1k0.github.com/casperjs/ — hurray. In the meanwhile, I've bough the casperjs.org domain to get this website available through it, so I put a CNAME file as recommended in the docs : https://github.com/n1k0/casperjs/blob/gh-pages/CNAME — in their example, the operation is supposed to create redirects from www.example.com and

Github pages are not updating

早过忘川 提交于 2019-11-28 16:56:09
I'm running into a weird issue with Github pages. I pushed a new commit to my personal pages page maltzj.github.io , but the new article isn't showing up there. When I execute the server locally, a post lives at localhost:4000/posts/the-price-of-inconsistent-code/ . However, when I go to http://maltzj.github.io/posts/the-price-of-inconsistent-code I get a 404. I also added a new file which should live at http://maltz.github.io/test.html , but that also throws a 404. Everything builds and runs locally my git repo is up to date, and there is nothing on the github status page about problems with

GitHub Pages: setting up custom domain

不想你离开。 提交于 2019-11-28 16:54:03
问题 I've got an organization page set up and running in GitHub and things seem to be working...but I'm a little confused. I'd like to actually understand the process since the GitHub Help article refers to taking advantage of their CDN and DoS services, so bear with me. Step 1: Created CNAME file in repo with domain 'example.com' Step 2: Grabbed IP from dig example.github.io +nostats +nocomments +nocmd Step 3: Entered IP from Step 2 into the 'A' record (see image below) I decided to stop here and

Unable to set favicon using Jekyll and github pages

自闭症网瘾萝莉.ら 提交于 2019-11-28 16:37:29
问题 I am trying to set a favicon.ico for my github page, but it doesn't work. When I serve it locally I see the standard "empty" favicon and when I push it I see the facebook icon. Why is it so? I have the right favicon.ico in the root directory of my project and I added the line <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> to the relevant default.html . You can see the sources here: https://github.com/drorata/drorata.github.io 回答1: I cloned your project from GitHub to take

Can one host an angular.js based static blog on Github?

*爱你&永不变心* 提交于 2019-11-28 16:26:11
问题 I know one can host a Jekyl based static site/blog via Github pages. Can one do the same with a static site/blog based on AngularJS? 回答1: I would say yes considering all the angular UI github pages are in fact angular apps with demos: http://angular-ui.github.io/ http://angular-ui.github.io/bootstrap/ etc 回答2: You can but you can't use html5 mode (removes the # from urls). If you use html5 mode, you have to redirect all requests to the root url since its a single page app. Since you can't use

How to force GitHub Pages build?

匆匆过客 提交于 2019-11-28 16:17:16
Every GitHub repository can have ( or be ) a GitHub Pages website, that can be built with Jekyll. GitHub builds the site every time you push a new commit. Is there a way to force the refresh of the Github Pages website without pushing a new commit? Pierre Prinetti From GitHub support, 2014-06-07: It's not currently possible to manually trigger a rebuild, without pushing a commit to the appropriate branch. Edit: As Andy pointed out in the comments, you can push an empty commit with the command: git commit -m 'rebuild pages' --allow-empty git push origin <branch-name> I had this problem for a

How to publish to Github Pages from Travis CI?

ぃ、小莉子 提交于 2019-11-28 15:59:41
We are compiling Doxygen docs on the travis-ci server and want to push them onto our gh-pages branch. How do I handle the authorization for git push ? Does someone have an example for using encrypted variables in travis-ci? Should I go for https authorization or for an SSH key? Step-by-step example with HTTPS API Token in environment variable Others have mentioned it, but here goes a more detailed procedure. Create a separate repository for the website (optional). This will reduce the likelihood that you overwrite your main repository, and will keep output files from polluting it. Get a

What is the best approach for redirection of old pages in Jekyll and GitHub Pages?

回眸只為那壹抹淺笑 提交于 2019-11-28 15:22:46
I have blog on github pages - jekyll What is the best way to solve url strategy migration? I found the best practice in common is create htaccess like so Redirect 301 /programovani/2010/04/git-co-to-je-a-co-s-tim/ /2010/04/05/git-co-to-je-a-co-s-tim.html But it does not seems to work with Github. Another solution i found is create rake task, which will generate redirection pages. But since it's an html, it's not able to send 301 head, so SE crawlers will not recognize it as an redirection. Konrad Podgórski The best solution is to use both <meta http-equiv="refresh" and <link rel="canonical"

Can I create more than one repository for github pages?

試著忘記壹切 提交于 2019-11-28 15:14:36
I created a repository for hosting a blog on github.Is there any way that I can create more to host multiple blogs?Am I limited to just one repository for hosting(since username.github.com can only be used once?) Stephen Jennings You can have one site per GitHub repository. Repositories other than "username.github.io" will be published at http://username.github.io/REPONAME . Those repositories will publish whatever you push to the "gh-pages" branch. A better description is available in the GitHub Pages documentation . ( since April 2013 , all username.github.com are now username.github.io ) No

Authenticate with GitHub using a token

风流意气都作罢 提交于 2019-11-28 15:12:16
I am trying to authenticate with GitHub using a personal access token. In the help files at github, it states to use the cURL method to authenticate ( https://help.github.com/articles/creating-an-access-token-for-command-line-use ). I have tried this, but I still cannot push to GitHub. Please note, I am trying to push from an unauthenticated server (Travis-CI). cd $HOME git config --global user.email "emailaddress@yahoo.com" git config --global user.name "username" curl -u "username:<MYTOKEN>" https://github.com/username/ol3-1.git git clone --branch=gh-pages https://github.com/username/ol3-1