github-pages

Issue when deploying with Heroku (Error 504)

蹲街弑〆低调 提交于 2020-01-06 04:56:06
问题 I'm deploying a very small React App + Node server to test deployment with Heroku, I can get the client but not the server, Repo : https://github.com/Versifiction/ofilms-test-heroku Website : https://test-ofilms-heroku.herokuapp.com/ In the console, there's a 504 error Failed to load resource: the server responded with a status of 504 (Gateway Timeout) xhr.js:166 GET https://test-ofilms-heroku.herokuapp.com/api/message 504 (Gateway Timeout) Do you know what I have to add to correct this 504

Why won't my CSS work on GitHub Pages?

拜拜、爱过 提交于 2020-01-06 02:28:10
问题 I'm making a web game called Sweet Shoppe, and I'm using GitHub Pages with it. The only problem is, the CSS won't work on GitHub Pages. I've tried putting the CSS file in the main repo (and in a folder) and importing it through the HTML, but when I go to my page URL (which is set to mreikono.github.io/Sweet-Shoppe) the CSS that I have in the file (which adds a background of gray stripes to the body) fails to show up. Mainly I want to know the following: What is the correct way to import some

Can Jekyll serve content based on a URL parameter?

萝らか妹 提交于 2020-01-05 17:51:30
问题 I'm migrating a blog from WordPress to GitHub pages. In the logs for my site, I've noticed that there are many requests like this: GET /wp/?feed=atom This 301 redirects to the ATOM feed for the site. I'd planned to use httrack to scrape my site and migrate all the static content. But this presents a problem. Is there any way to replicate the /wp/?foo=bar redirects using Jekyll? 回答1: You can use Jekyll redirect_from plugin which is one of the rare plugin that can be used on github pages. The

Full width header in jekyll?

白昼怎懂夜的黑 提交于 2020-01-05 04:56:10
问题 In my Jekyll site all content has specific width. As I understand this comes from /css/main.scss : $content-width: 800px; $on-palm: 600px; $on-laptop: 800px; I tried using "local" css in order to overwrite these. And it didn't worked. Also the above affects the whole content. Is there any way to make the header ( /_includes/header.html ) full width and keep the rest content with the default-centered width (inherited from above)? 回答1: In _includes/header.html , change <div class="wrapper"> for

How to stop github pages from parsing YAML

陌路散爱 提交于 2020-01-05 04:30:13
问题 I've write a pure static blog without jekyll engine , it is pure js static blog . I want to push my js blog to github pages, unfortunately it will parse YAML and get such an error: Your site is having problems building: There was a YAML syntax error on line 3 column 14 in : mapping values are not allowed in this context . For more information, see https://help.github.com/articles/page-build-failed-invalid-yaml-in-data-file. How to stop github pages from parsing YAML? 回答1: I found a solution

Github page build failure

限于喜欢 提交于 2020-01-03 19:52:06
问题 I am creating my website on github page, I am not using jekyll or any of its kind, it's just pure javascript and html css. Why sometime it gives page build failure? what it is building then? 回答1: By default in a github repository, the gh-pages branch is build with Jekyll . If you have underscored folders (eg: _myfolder) Jekyll tries to build. If they are not real Jekyll folders, this breaks the build. If you don't want to process you html/js code, add a .nojekyll file at the root of your code

How to fix HTTP 404 on Github Pages?

一个人想着一个人 提交于 2020-01-03 17:00:18
问题 Here is my GitHub repository on the gh-pages branch. Everything looks good, I have my index.html , my CSS, JS and pictures folders. But when I access http://roine.github.com/p1 I get HTTP 404 not found. Any explanation and solution? 回答1: I had just one commit with all my files. I pushed an empty commit, refreshed the page and it worked. git commit --allow-empty -m "Trigger rebuild" git push 回答2: In my case, I had folders whose names started with _ (like _css and _js ), which GH Pages ignores

How do I add a README.md file into the root directory of the generated blog by HEXO?

对着背影说爱祢 提交于 2020-01-02 19:48:12
问题 My blog is based on Github Pages and the program I'm using is HEXO the files that are generated by HEXO don't contain a README.md file so I can't make a declaration of my blog on Github repo page.So I want to add a README.md file to the folder that HEXO generates.I've tried that add it manually to the folder after using $ HEXO g and it is added to successfully.But the problem is that every time I use $ HEXO g ,the file I added will be deleted by the program. So I want to that is there any

Can I use liquid tags in css to have jekyll use a different background image on a per-page basis?

我的梦境 提交于 2020-01-02 04:08:09
问题 I'm using Jekyll and Liquid to generate a static web site on GitHub pages. I have found a template from templated.co (this one, specifically) that I am using for the page's layout. I have Jekyll delivering the content properly, but I would like to use a different background image on each page (in place of the default that's there now) by using Liquid in the CSS. I have Jekyll/Liquid recognizing the CSS by adding an empty front matter section to style.css, but I cannot get the following line

Images not displaying in Github Pages?

送分小仙女□ 提交于 2020-01-01 08:03:49
问题 I added a project site to my Github project. But some photos are not displaying in the site. Img code: <img src="img/screenshot2.PNG" class="img-responsive" alt=""> </div> folder structure (img is a folder): img Screenshot2.png index.html I tried with .png and .PNG (some earlier SO answers suggested it) and none of them work Any solutions? 回答1: Nevermind, I solved it. If anyone has the same problem. GitHub Pages are case sensitive. Not only for folders, but also for image names. 回答2: Write