github-pages

Github Pages build failure

蹲街弑〆低调 提交于 2019-12-24 06:50:13
问题 I'm getting the following error about my Jekyll Github Pages reop: Your site is having problems building: A file was included in source/blog/index.html that is a symlink or does not exist in your _includes directory. This is the file it is complaining about, and the rest of the code is contained in that repo. I'm confused because the two files it is referencing are in the _includes folder, so what could be the issue? The page works fine when I build and run it locally. Thanks! 回答1: I

Broken image paths on Github Pages (without Jekyll)

那年仲夏 提交于 2019-12-24 06:45:41
问题 I recently pushed a static HTML site to Github Pages. Since it's not a blog, I opted not to use Jekyll. Now, of course, all of my relative image links are broken, and I've yet to find a fix that isn't specific to Jekyll. Any ideas for a fix? Will that fix continue to work once I switch from the username.github.io URL to a custom URL? 回答1: Not sure if I'm understanding the question correctly here, but could you not just move the images to the relevant place? For example, if in index.html you

Receiving 404 error for assets in Github Pages Jekyll site

人盡茶涼 提交于 2019-12-24 02:23:30
问题 I'm attempting to set up a basic Jekyll site on github pages. The site in question currently is: https://kculmback.github.io/kcfeatures-v2/ Here is the repo: https://github.com/kculmback/kcfeatures-v2 My problem is that the site is not loading images or the css files from my assets folder, even though the link seems to be correct (as far as I can tell). Example link to image: kculmback.github.io/kcfeatures-v2/assets/img/Logo.svg (currently not working) Here is the image in the repo: github

No 'Access-Control-Allow-Origin' header is present on the requested resource. with github sites

余生长醉 提交于 2019-12-24 01:03:08
问题 http://kingdiepie.github.io/testing.html XMLHttpRequest cannot load https://docs.google.com/spreadsheets/d/1_4d-MPxTUOVZbxTOlhjXv1ebTlBPQ-_JrYUlS1rqX5Q/pub?output=csv. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://kingdiepie.github.io' is therefore not allowed access. I have a github sites page and am trying to grab data from google sheets to create a html table, the code works fine on localhost but does not work when it's online. <head> <script

Trailing slashes in Jekyll + GitHub Pages site cause 404

被刻印的时光 ゝ 提交于 2019-12-23 04:11:57
问题 I would like all of the following URLs to resolve on my website, which is built with Jekyll and hosted on GitHub Pages: https://michaeledelstone.com/about https://michaeledelstone.com/about/ https://michaeledelstone.com/about.html Locally they all work correctly, but right now on the live site, the first and third option resolve, but the middle one with the trailing slash causes a 404 error. I am not using permalinks at the moment. When I do add permalink: /about/ to the front matter in my

Showing a GitHub project page only under custom subdomain, never via folder path

强颜欢笑 提交于 2019-12-23 02:19:27
问题 I have an organization GitHub Pages repository set up, and it's served through a custom domain name (let's say, http://example.com/). I also have a couple of projects pages which I want to be accessible via a subdomain only (let's say, http://project.example.com/), but it turns out that they will also be accessible at a different URL (that is, http://example.com/projectname/). Is there any way to avoid this? Both the organization pages and the project pages have CNAME entries set up, and the

Bootstrap / CSS not working on Github Pages

假装没事ソ 提交于 2019-12-22 18:18:21
问题 I'm trying to put my code on Github Pages. It shows and works, but the styling is off, I'm attaching pictures of what it looks like when I test index.html locally vs when I open up my github.io page. How do I get it to look like when I'm testing it locally? <head> <script src="jquery-3.1.1.min.js"></script> <link href="bootstrap.min.css" rel="stylesheet" type="text/css" /> <script src="bootstrap.min.js"></script> <link rel="shortcut icon" type="image/x-icon" href="favicon.png" /> <meta

github pages fails to convert .md in table to .html

好久不见. 提交于 2019-12-22 13:54:09
问题 Markdown tables are rendered in a lopsided fashion, and I've used html coding in a markdown (.md) file to get something that looks reasonable to me. That seems to cause a problem when my .md files are converted to .html github pages (jekyll). It seems that any links (e.g. somefile.md ) in the html-coded table are not converted to the .html extension; in other words, the link in the github pages page is to somefile.md instead of somefile.html . Following a link then yields a really ugly .md

Table of Contents in Markdown, using only the standard / out of the box Github Pages tooling?

纵然是瞬间 提交于 2019-12-22 09:21:43
问题 Trying to setup up a blog / documentation using purely hosted / "out of the box" GitHub Pages Jekyll; I am specifically trying to avoid having to run Jekyll locally (although I can). I have tried http://www.seanbuscay.com/blog/jekyll-toc-markdown/ but that doesn't work. Is this possible, or does it truly require additional tooling? 回答1: By default Jekyll uses Kramdown, it already comes with a TOC generator. You don't need a plugin for this so it will work with github-pages. kramdown supports

Programmatically enable Github Pages for a repository

自作多情 提交于 2019-12-22 08:51:19
问题 Is there any way to enable Github pages through the api? Not requesting a page build, I mean the initial enabling of the feature and pointing to a branch. 回答1: You just have to push content to the remote git repository. You have to differentiate between a User-Page (username.github.io) and a Project-Page (username.github.io/projectname) User-Page: git clone https://github.com/username/username.github.io cd username.github.io echo "Hello World" > index.html git add --all git commit -m "Initial