github-pages

jekyll syntax highlighter not working

时间秒杀一切 提交于 2019-12-08 12:15:51
问题 I'm using jekyll and Github Pages to build my website. And I followed all the instructions on http://jekyllrb.com/docs/templates/#code-snippet-highlighting, however, the syntax highlighter within my post won't render. Below is the code: {% highlight ruby %} def print_hi(name) puts "Hi, #{name}" end print_hi('Tom') #=> prints 'Hi, Tom' to STDOUT. {% endhighlight %} And I think the markdown file doesn't render properly, either. Can anyone tell me where I did wrong? You can check the post here:

How can I redirect a request to a subdomain to another subdomain on Route 53?

橙三吉。 提交于 2019-12-08 12:09:08
问题 I have a GitHub Pages Jekyll blog at blog.Antrikshy.com. I have been meaning to move it to code.Antrikshy.com for a while now. I made the new address a CNAME for antrikshy.github.io on Amazon and wired everything correctly to make it work. Now my blog.Antrikshy.com URL is broken. How can I set it to redirect it to the new subdomain? I'm new to this. Comment if you want any more information. Preferably I'd like to do a 301 redirect and also retain the entire path, but that's not very important

How do I get vanilla Markdown style relative links to work with vanilla Jekyll and Github pages?

落爺英雄遲暮 提交于 2019-12-08 08:13:09
问题 tl;dr I want Markdown, relative links, Jekyll, and Github pages to play well together. I would like to be able to view a file that contains working vanilla Markdown style relative links (i.e. [a relative link](other_file.md) ) on Github and on Github pages using Jekyll. So far this works with viewing said file on Github since Github added support for relative links. However this doesn't work out of the box in Jekyll because it expects {{ site.baseurl }}{{ post.url }} . Is there some

Angular 5 error 404 when copying dist to webserver

我怕爱的太早我们不能终老 提交于 2019-12-08 07:02:39
问题 I made a simple Angular 5 cover to say that I'm still constructing this website. ng serve works fine locally, but now I wanted to host this on my schools website here and I get all these 404 resources not found and all I did was copy whats in the dist/ folder after running ng build --prod to the www/ folder on the webserver. It's angular 5 with this cli version: "@angular/cli": "~1.7.1", "@angular/compiler-cli": "^5.2.0", I tried to push another one to github-pages and this has the same

SSL certificate verification failure in jekyll-github-metadata

[亡魂溺海] 提交于 2019-12-08 06:52:39
问题 When trying to build my Github Pages site locally, the jekyll-github-metadata plugin is causing SSL cert errors. The site has no problem rendering on github pages, so it must be a configuration issue on my end. I am aware of this issue, and while it does not appear to be exactly the same (I have no trouble installing gems, only using the github metadata plugin) I added the certificate to my environment variables, but it changed nothing. What do I need to change for the SSL cert to verify

Deploy project created with foundation-cli?

寵の児 提交于 2019-12-08 05:27:23
问题 I'm trying to figure out if there's any way to deploy this project https://github.com/nataliecardot/zeus-hosting-setup, preferably to GitHub Pages. No dist folder is created when I run foundation build , which apparently is an old issue. Is it possible for my to deploy this in any way? Or if not, any other way to get it online? 回答1: You need to generate the static pages that will be published online, and do so in the appropriate branch. Since master includes what is necessary to generate the

Adding of any html file from the minima/_includes directory into the website directory cause the github build to fail

廉价感情. 提交于 2019-12-08 05:26:55
问题 I wanted to override/change certain things in head.html so I copied to over https://github.com/jekyll/minima/blob/master/_includes/head.html to my website directory and built it (jekyll clean + build) - this worked fine in my local but on pushing the same to github the build fails with no particular error. Here is my commit that fails in github This where i reported it. Generic error that i get - The page build failed for the master branch with the following error: Page build failed. For more

hosting gh-pages on custom domain, white empty page

◇◆丶佛笑我妖孽 提交于 2019-12-08 04:17:27
im new to coding and need some help. I made a react project (using create-react-app), and the website has been running on my gh-pages branch (heres my repo: https://github.com/simchaleh/shivisihashem.git ) ive been trying to host the gh-pages project on a custom domain instead. my react project looks great when its hosted on gh-pages, but when i try to connect it to my custom domain, all i get is a solid white screen. heres a screen pic of my dns settings on custom domain. (u can also see that gh-pages says its hosting on my domain): dns settings and gh-pages/settings page I have a CNAME file

Using a custom base URL for project pages

家住魔仙堡 提交于 2019-12-08 03:57:50
问题 I'm using Github pages/Jekyll for both my personal page as well as my project page. I'm also using a custom domain, so something like username.github.io redirects to mycustomdomain.com . Since I also have a gh-pages branch for my projects, my project's page lives at mycustomdomain.com/myproject . However, I'd prefer if I could choose what this URL would be, for example, mycustomdomain.com/projects/myproject . Is there any way to do this, without copy/pasting the whole project my username

hosting gh-pages on custom domain, white empty page

北城以北 提交于 2019-12-08 03:26:05
问题 im new to coding and need some help. I made a react project (using create-react-app), and the website has been running on my gh-pages branch (heres my repo: https://github.com/simchaleh/shivisihashem.git) ive been trying to host the gh-pages project on a custom domain instead. my react project looks great when its hosted on gh-pages, but when i try to connect it to my custom domain, all i get is a solid white screen. heres a screen pic of my dns settings on custom domain. (u can also see that