github-pages

Maintaining git branches with different file organization

感情迁移 提交于 2019-12-11 12:07:32
问题 I am working on a project that I deploy both on gh-pages and as an android application using cordova/phone gap. http://github.com/derekmc/html-sandbox Currently, the code for both deployments is very similar and maintaining separate branches has not been a problem. However, I recently tried to create a deeper file organization, but phonegapbuild didn't include the files from subdirectories. I am afraid that to get this to work I am going to have to organize the files in the two branches

Jekyll Error “Liquid Exception: undefined method `encoding' for nil:NilClass in _layouts/post.html”

情到浓时终转凉″ 提交于 2019-12-11 11:54:26
问题 Getting the following error when trying to run jekyll build or jekyll serve : Liquid Exception: undefined method 'encoding' for nil:NilClass in _layouts/post.html jekyll 2.5.3 | Error: undefined method 'encoding' for nil:NilClass It looks to be an issue with a RVM/ruby file? (see the --trace logs below) but I haven't really touched anything code-wise (especially not in any ruby files) and haven't edited '/_layouts/post.html' in the last several commits and this just popped up. Here's the

Can an embedded Java Applet be hosted on Git-Pages?

旧时模样 提交于 2019-12-11 11:34:35
问题 I want to embed a java applet (stored in a git repository) in the accompanying github-pages page. Is this possible? 回答1: Yes. Although GitHub pages can be generated through a simple markdown interface, any files in your branch will be served as part of your gh-pages-site. This means you can host client side scripts like Java-Applets or JS on your GitHub Pages site. To host a java applet: Create a jar file for your Applet. Place the .jar file into the root of your gh-pages branch. Embed the

Post permalinks not being parsed in Jekyll on GitHub Pages

为君一笑 提交于 2019-12-11 10:40:46
问题 I've created a new site at GitHub Pages, using Jekyll. I'm using a custom permalink format in the following form: permalink: /:title This is because I've moved my blog over from WordPress and want previously existing links to continue working. When I run the server locally with "jekyll serve", it works fine - however, once it's hosted on GitHub Pages, the links don't get parsed correctly, leading to tags like this one: <a class="post-link" href="/:title">Markdown and HTML</a> Further

How can I get rid of the hash tag in my AngularJS site URL?

北城以北 提交于 2019-12-11 07:46:25
问题 I uploaded an AngularJS site to my gh-pages branch and pointed the DNS A records to 204.232.175.78. Now the site is live but I see a hash tag as part of the URL structure. Here are the two URLs one can see the home page of the site at http://www.maxmythic.com/#/ http://siddhion.github.io/maxmythic_angular/#/ The URL I want visitors to enter and see in the address bar is simple maxmythic.com . If one enters maxmythic.com it redirects to http://www.maxmythic.com/#/. How would I make the URL of

Generate category page in jekyll targeting github pages

随声附和 提交于 2019-12-11 06:52:01
问题 I am trying to generate category pages for my github pages blog using jekyll. When i run locally using jekyll serve this works because it can use my plugin. Using this example from the docs doesn't work because github will not generate custom plugins: module Jekyll class CategoryPage < Page def initialize(site, base, dir, category) @site = site @base = base @dir = dir @name = 'index.html' self.process(@name) self.read_yaml(File.join(base, '_layouts'), 'category_index.html') self.data[

Using webpack and React to load images

时间秒杀一切 提交于 2019-12-11 06:14:43
问题 Im new to using React and webpack and I cant seem to load the images from my assets directory to the react file I need it in. It displays on a local server but when I run it on my github page, the images arent loaded properly this code works fine on the local server. Portfolio.jsx <img src="../assets/hood.png"/> Is there any way to require my assets directory from that React file ? Here is my gh-page : https://jcook894.github.io/Portfolio/ 回答1: You can use the require keyword so that it will

jekyll serve shows a dependency erroe

旧巷老猫 提交于 2019-12-11 05:52:33
问题 While trying to run Jekyll serve on one of my website folders, I get the following error Dependency Error: Yikes! It looks like you don't have jekyll-sitemap or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-sitemap' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! How do I install jekyll-sitemap? 回答1: To install the

Leaflet with GitHub Pages - not rendering

断了今生、忘了曾经 提交于 2019-12-11 05:14:32
问题 I have a simple webpage into which I have embedded a basic leaflet map. When I try to publish this via my GitHub Pages website, the leaflet map won't render (everything else is fine). GitHub Pages spec says it supports JS and this shouldn't be a problem as it's an API. I have tried to use a downloaded version of leaflet (.css and .js files uploaded to my gh-pages repository), but still nothing. Anyone have any ideas why this isn't working? Is this what GitHub Pages means when it says that it

Jekyll Deployment on Github Pages doesn't format correctly (No styling)

时光怂恿深爱的人放手 提交于 2019-12-11 03:48:40
问题 First of all, I would like to say I have tried for 2+ hours to try and correct this error, but alas I cannot figure it out. I am also a newbie to Jekyll and Github Pages. However, I am competent in code and can correct any errors. When I go to my github pages for this repository: Repository link 2:https://github.com/jeffward01/Conscience-Alchemy.git Github pages link: https://jeffward01.github.io/Conscience-Alchemy There is no formating applied. I know/suspect its a problem with my base.url