github-pages

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

扶醉桌前 提交于 2020-01-01 04:21:29
问题 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

Is there a way to enable CORS on Github pages?

半腔热情 提交于 2020-01-01 04:10:08
问题 I'm hosting some JSON files on Github pages, but I am unable to use $.getJSON to retrieve them unless they come from the exact same domain. Is there a way to enable CORS for Github pages? 回答1: As a workaround one can use JSONP, but it's still slightly a pain because the files are static, and each one will need a unique callback method. Another alternative would be to store the files in Gists and use the Github API which works with CORS. A third possibility is to not store the files on Github

Configuring Jekyll for github PROJECT pages

╄→尐↘猪︶ㄣ 提交于 2019-12-31 10:33:42
问题 I am at my wits end here. I've been trying to look at all other example github project pages I could find and even the blogs but none exhibit the problems I am getting. First, I am trying to create a project page for my repo. I did this by following the usual tutorials, creating a gh-pages branch in my project repo and pushing. I managed to do these and template my files. I even managed to use HAML and SASS(they still both get converted to html/css and that's what I push to the repo so no

Configuring Jekyll for github PROJECT pages

时光毁灭记忆、已成空白 提交于 2019-12-31 10:33:27
问题 I am at my wits end here. I've been trying to look at all other example github project pages I could find and even the blogs but none exhibit the problems I am getting. First, I am trying to create a project page for my repo. I did this by following the usual tutorials, creating a gh-pages branch in my project repo and pushing. I managed to do these and template my files. I even managed to use HAML and SASS(they still both get converted to html/css and that's what I push to the repo so no

Deploying Jekyll to Github Pages

眉间皱痕 提交于 2019-12-31 09:26:21
问题 I have built a site locally with Jekyll, and have pushed it to a new master repo (username.github.com) and the site works great yay. My question is, how do I move just the deployable part, the _ site directory, into a gh-pages branch? Or rather, the contents of that directory if that is the best way to deploy? I plan on using a custom domain. My workflow will be to work in the master branch, maybe some feature branches, and then push (merge) the compiled outcome into the gh-pages branch. Does

Deploying Jekyll to Github Pages

99封情书 提交于 2019-12-31 09:25:02
问题 I have built a site locally with Jekyll, and have pushed it to a new master repo (username.github.com) and the site works great yay. My question is, how do I move just the deployable part, the _ site directory, into a gh-pages branch? Or rather, the contents of that directory if that is the best way to deploy? I plan on using a custom domain. My workflow will be to work in the master branch, maybe some feature branches, and then push (merge) the compiled outcome into the gh-pages branch. Does

Javascript won't run on github pages site

ぐ巨炮叔叔 提交于 2019-12-30 07:13:20
问题 So the javascript used to work on my github pages site but it doesn't work anymore after I delete the repository and tried to re-uplaod the project with some changes. Here is the repo. Here is the site. 回答1: You are serving the site over HTTPS but trying to load jQuery over HTTP. This is not allowed. <!-- wrong --> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> Replace http with https and you should be good to go. This error is easily discoverable if

Set subdirectory as website root on Github Pages

自古美人都是妖i 提交于 2019-12-29 10:14:10
问题 I'm using Github Pages to host & serve a static website. The static website has the typical directory structure for an app: |_ source |_ build |_index.html .gitignore config.rb Gemfile ... README.MD index.html is under build/ , so I want to make that the default www path. So when users hit username.github.io it renders the content within that subdirectory and yet it doesn't show "/build"/ on the URL, cause that's set as the root folder. Notes: I don't have a custom domain nor planning to get

Do GitHub pages support PHP?

空扰寡人 提交于 2019-12-29 07:29:06
问题 Thank you for taking the time to review my request for help. I've been using gh-pages to work on a build for a static site and thee server has worked amazing for me throughout the build! Although I seem to have an issue when submitting my HTML web form to my email through PHP code. When I submit to the gh-pages server I get this error message saying " 405 not allowed ngix ". I've been digging around to find an answer to this. First I discovered that I did have a few minor errors in my code

Committing via travis ci failing

你说的曾经没有我的故事 提交于 2019-12-28 09:13:14
问题 I am trying to use grunt-gh-pages extension to commit to my gh-branch. It works fine locally but when I use TRAVIS-CI it fails. It gives the following error message - Warning: fatal: remote error: You can't push to git://github.com/tusharmath/tusharm.com.git Use https://github.com/tusharmath/tusharm.com.git Use --force to continue. And when I update the repo option I get the following error - Warning: remote: Anonymous access to tusharmath/tusharm.com.git denied. fatal: Authentication failed