github-pages

Gatsby.js - 404 page for nested project

拜拜、爱过 提交于 2020-02-02 14:49:53
问题 I have a Gatsby.js project that I host through Github Pages. The project is within a directory called /an I'm deploying it through gh-pages package with the following command gatsby build --prefix-paths && gh-pages -d public -b master -e ./an I've followed https://www.gatsbyjs.org/docs/path-prefix/ to set the proper prefix path. My custom 404 page is not detected through Github Pages. I believe it is because it has to be set on the repo root and not in /an. How to tell GitHub Pages to use the

Gatsby.js - 404 page for nested project

偶尔善良 提交于 2020-02-02 14:48:27
问题 I have a Gatsby.js project that I host through Github Pages. The project is within a directory called /an I'm deploying it through gh-pages package with the following command gatsby build --prefix-paths && gh-pages -d public -b master -e ./an I've followed https://www.gatsbyjs.org/docs/path-prefix/ to set the proper prefix path. My custom 404 page is not detected through Github Pages. I believe it is because it has to be set on the repo root and not in /an. How to tell GitHub Pages to use the

Getting blank page after react app publish in github

我与影子孤独终老i 提交于 2020-01-24 14:07:49
问题 My steps are: npm run build Then "homepage": "https://parthaaaaa.github.io/firstwebapp/", "predeploy": "npm run build", "deploy": "gh-pages -d build" in package.json file Then npm install --save-dev gh-pages Then In Github repository.. I selected "gh pages branch.* Finally, npm run deploy but I'm getting a blank page app runs fine in local host.. Help.. 回答1: In your package.json homepage is not correct, so it is messing up the build. Change "homepage": "https:Parthaaaaa.github.io/firstwebapp"

simple iframe is not displayed on github pages

早过忘川 提交于 2020-01-24 12:34:05
问题 I regularly embed iframes in my github.io pages but this one fails - I can't see why. The iframe : <iframe src="http://www.javarepl.com/embed.html" style="width: 500px; height: 130px; border: 0px"></iframe> Embedded at several places in this page - and not showing up : https://seinecle.github.io/codapps/generated-html/essential-notions-of-code.html (note: when loading the html page locally, the iframe does show up). 回答1: Check your browser console and you'll see the error: Mixed Content: The

Why is Font Awesome not working on my jekyll-built Github site?

此生再无相见时 提交于 2020-01-24 06:42:07
问题 I am using Jekyll to build my blog site, which is hosted by Github, and I am trying to incorporate font-awesome. The fa icons don't show up, and now my Github page is not updated with my latest blog post. I've tried to link the font-awesome stylesheets to my css. I ended up using {% includes font-awesome.css %} in my stylesheet.css file, and I think that works fine. In my navbar html, I've included the typical font-awesome i tag like so: <li><a href="{{ site.baseurl }}/index.html"><i class=

How to use theme from github.io site for Github Project Pages sites

六月ゝ 毕业季﹏ 提交于 2020-01-24 01:02:16
问题 I've been working on my website on and off for a couple years, learned a ton about JavaScript, CSS, HTML, Bootstrap, Jekyll, Travis-CI, and Github Pages in the process. (Long list is a major factor in why it's taken so long.) I've discovered that if I push to (or have Travis deploy to) the gh-pages branch of a repo, it actually becomes a subdomain of my website. Examples: here, here, here. This is pretty awesome, but those sub-pages end up feeling like they're not a part of the same website,

Using ASP.NET in GitHub Pages

允我心安 提交于 2020-01-22 13:44:12
问题 I am trying to create a personal website on GitHub Pages using the ASP.NET Web Forms template from Visual Studio 2013. (I'm trying to learn ASP.NET/C#) But it looks like GitHub pages only will load a file named "index.html" as the home page. I made my index.html file redirect to my Default.aspx file, but it just causes my browser to download that file. This is my index.html file currently: <html> <head> <title></title> <meta http-equiv="refresh" content="1;url=/JoeWebsite/Default.aspx"> <meta

Using ASP.NET in GitHub Pages

为君一笑 提交于 2020-01-22 13:43:46
问题 I am trying to create a personal website on GitHub Pages using the ASP.NET Web Forms template from Visual Studio 2013. (I'm trying to learn ASP.NET/C#) But it looks like GitHub pages only will load a file named "index.html" as the home page. I made my index.html file redirect to my Default.aspx file, but it just causes my browser to download that file. This is my index.html file currently: <html> <head> <title></title> <meta http-equiv="refresh" content="1;url=/JoeWebsite/Default.aspx"> <meta

Load json from github file

China☆狼群 提交于 2020-01-16 04:20:08
问题 I'm trying to access/retrieve some json data from a webpage hosted by github pages, so all of my files are within my repository. I'm trying to do $.getJSON("https://raw.githubusercontent.com/mydata.json", function(data){ console.log(data); } from my html page on github-pages, since that's the only way I know how to access the json data right now. However, The json content is on the domain https://raw.githubusercontent.com while my page is from the domain http://mygithub.github.io , so I'm

“New Jekyll Page” not rendering default css.stylesheet : Only index.html works fine

隐身守侯 提交于 2020-01-16 00:37:06
问题 I am quite new to Jekyll & webdesign in general. So far I have followed the regular instructions on how to build a new page with jekyll. It all sounds fairly simple in theory. But in practice I experience issues that are just not explained in the theory. Below I try to be as descriptive as possible: Directory structure: ├── _includes │ ├── footer.html │ ├── head.html │ ├── header.html │ └── scripts.html ├── _layouts │ └── default.html ├── _site │ └── ... │ ├── css │ └── style.css ├── fonts │