github-pages

Github Pages renders blank page

半腔热情 提交于 2019-12-11 01:47:25
问题 I just pushed a blank Jekyll site to my github pages. https://louissafety.github.io/ However, instead of rending the default jekyll page, it renders the blank page. What could be wrong. It works fine on the local machine. Github page : https://github.com/louissafety 回答1: While your site is properly setup to use jekyll , it's using ruby gems that are not available to github-pages . The only lines that you're supposed to have in your Gemfile are: source 'https://rubygems.org' gem 'github-pages'

What the the scope of Liquid variables on Jekyll on GitHub Pages

你。 提交于 2019-12-11 01:47:25
问题 I have created a simple Jekyll page (processed and hosted by GitHub Pages) with a Liquid counter variable where I loop through some data and dump it out and count the number of items with a given property. For example: Complete Before: {{ complete }} {% for book in books %} Title: {{book.Title}} {% if book.Completed == "true" %} {% increment completed %} {% endif %} {% endfor %} Complete After: {{ complete }} Now I have the same chunk of code on two different pages, but the data in books is

Github Pages root gives 404 with Jekyll

风格不统一 提交于 2019-12-11 00:16:15
问题 I've recently published my Jekyll site to Github pages. I'm using my custom domain (example.com) that's mapped to my username.github.io account. If I go to example.com/index or example.com/index.html, my site works. However, if I just go to example.com I get a GitHub pages styled 404 page. I've tried having an index.html file in my Jekyll root DIR. I've also tried replacing that with an index.md that has layout:home in the frontmatter, which calls a home layout in my _layouts folder. Does

Change theme of my github pages, and pages are empty

*爱你&永不变心* 提交于 2019-12-10 19:07:46
问题 I'm new to Github pages and Jekyll , I follow the steps about how to build Github pages, and then succeed. When I changing the theme in Settings and refresh, it shows nothing in main page. I don't override _layouts or anything else. Because it says Github support the theme so I would think I should do nothing to support the new theme, just like the default theme Minima . So I wonder, does it just go like this or I missing something? Thanks for any idea :) 回答1: Each Jekyll theme has a

How can I change my Github Pages default index.html location?

我的梦境 提交于 2019-12-10 18:51:56
问题 I already tried what's shown on the following threads: Can I have my Github Pages index.html in a subfolder of the repository? possible to change where github pages looks for index.html? Basically, running git subtree push --prefix public origin gh-pages doesn't do anything and I still get a 404 error on my site (located here). You can find my site's structure here. Here is my Github Pages configuration: Also, a possibly important note: my site is being deployed from the master branch, not

Cannot deploy to with gh-pages with specific project due to error: cannot spawn sh: No such file or directory

北城以北 提交于 2019-12-10 18:25:43
问题 Keep getting the error: error: cannot spawn sh: No such file or directory fatal: unable to fork The project builds correctly but when trying to deploy my website it fails. Website was created with "create-react-app" on my windows 8 pc with the command "gh-pages -d build" This issue only occurs in this specific project on my pc as when I create a new project with "create-react-app" on my pc it'll deploy fine. This specific project can also be deployed fine with "gh-pages -d build" on my mac

Is there a way to evaluate string with liquid tags

回眸只為那壹抹淺笑 提交于 2019-12-10 18:17:17
问题 I need to provide page content reference list (it should contain references on sections on page). The only way which I can see is to use page.content and parse it, but I stumbled on problem with data evaluation. For example I can pull out this string from page.content : {{site.data.sdk.language}} SDK but there is no way to make jekyll process it, it outputs as is. Also I want to make it possible to create cross-pages links (on specific section on page, but that link generated by another

How to get number of result pages for the data fetched from Github API for a request?

我们两清 提交于 2019-12-10 16:30:16
问题 I am not using CURL and only using jQuery, AJAX and JS for getting information from Github API. I am using a URL like this to get information about issues- https://api.github.com/repos/jquery/jquery/issues But the result comes in multiple pages since Github API uses pagination feature. When using CURL we get to know about the header information in which the number of result pages are also shown but I am not using CURL and directly requesting data from above API url using jQuery and AJAX so I

Github pages - Disable custom domain redirection for all but a single site?

风格不统一 提交于 2019-12-10 13:49:25
问题 I've been using github pages since a long time and use the custom domain redirection feature to redirect my user website from prahladyeri.github.io to my own domain which is https://www.prahladyeri.com by adding a CNAME file. However, for the web-pages ( gh-pages branch) of open source projects that I maintain, it automatically redirects a foo project to www.prahladyeri.com/foo when no CNAME is specified. Is it possible to use the default prahladyeri.github.io/foo scheme for my projects, but

Angular 4 application on Github Pages

眉间皱痕 提交于 2019-12-10 11:28:24
问题 I have a simple Angular (4) application which I want to host on Github Pages , the option to do this from Angular CLI seems removed. Is there a way to do this, if so how? this is my package.json { "name": "e-portfolio", "version": "0.0.0", "license": "MIT", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/cli": "^1.0.6", "@angular/common": "^4.0.0", "@angular/compiler": "^4