Tag Info

Hot answers tagged

4

As covered here, GitHub Pages is served with Nginx and automatically gzip's content. You can confirm gzip compression for your site by checking the HTTP headers with online tools like this one. Enter the URL to a webpage or resource, and type in gzip under "Accept-Encoding" to indicate that the HTTP client (i.e., the online testing tool in this case) ...


4

Since it based on rendering plain files from a git repository, I don't think you can use dynamic information. The goals of Github Pages is to show a static site easily from an open source project. You can still contact them and I think you have a dedicated support if you use Github Enterprise.


4

If the DNS has started to propagate, you may be facing caching on your computer or ISP's DNS server. I'd wait for a bit, or try either: temporarily using a different DNS provider, e.g. OpenDNS or Google Public DNS (you may need to restart your browser or OS) checking from a computer using a different ISP/DNS server Good luck.


3

You have forgotten to set your custom domain value at production_url (see _config.yml).


3

Do I use a CNAME for www only then, with no A record at all? You would need to use a CNAME for the www.example.com subdomain, and an ALIAS record for your root domain example.com (aka., "apex domain"). As indicated in the help document you provided on Setting up a custom domain with Pages: Some DNS providers (like DNSimple) allow you to use an ...


3

AFAIK unless somethings changed you arent able to use Namesevers as they are used for the main domain, you will have to use a A domain or a CNAME to cover the domain. Sorry to break the news to you.


2

From what I can see, gist.github.com uses javascript to embed gists such as: <script src="https://gist.github.com/1234.js"> </script> And although Google parses some javascript but I doubt 3rd party widgets would get parsed (see update below) but this exact issue was discussed by Simon Bingham here. He suggests you use the "SEO Friendly ...


2

This question is opinion-based but I'd still like to help you out here. Advantages: Well, it's free! GitHub's CMS gzip & minify A fast CDN Disadvantages: No 'good' cache No 'good' SSL support No good cookies system Of course, Github pages is free so I imagine there has to be downsides. I understand you're thinking that but GitHub pages is ...


1

It requires two things; Add a file called CNAME at the root of the project which only contains the domain name, see the docs In your DNS server, add an entry. This is done at your domain name service provider, or named/bind zone file Follow the instructions on setting up a custom domain with GitHub pages


1

For github projects, you can subscribe to the release tag for project via RSS. Some examples: https://github.com/dropbox/dropbox-js/tags.atom https://github.com/angular/angular.js/tags.atom


1

Breno Salgado posted this simple Jekyll plugin on StackOverflow: ./_plugins/markdown_tag.rb: module Jekyll class MarkdownTag < Liquid::Tag def initialize(tag_name, text, tokens) super @text = text.strip end require "kramdown" def render(context) "#{Kramdown::Document.new(File.read(File.join(Dir.pwd, '_includes', ...


1

Currently, the best you can do is to GitLab CI to push to a static server like Amazon S3. If you can deploy with Git, the following (unsolved) question is specific to how to do it with gitlab: http://stackoverflow.com/questions/14288288/gitlab-repository-mirroring There is a specific request for that at the feature tracker: ...


1

With a little searching of various questions on Google, I found a way. It may not be the best way and it may be over complicated, but it should work and that's the main thing. Though, if you know a better way or can find one, please do let me know! I found that you can deploy your code to your servers via Git hooks. All you need to do is SSH into your ...


1

Here is the relevant help page: https://help.github.com/articles/user-organization-and-project-pages They have two types of pages: User/Organization Pages and Project Pages Based on this, they are not limiting the use of Github Pages to just software projects. They allow pages for users and organizations.


1

GitHub allows you to create a custom 404 page but there is a caveat. The 404 will be displayed only if you use a custom domain or for user pages. Custom 404s only work when they are served from the root of a Pages domain, for example a project using a custom domain or a user pages repository. A custom 404 page on project pages that are not using a custom ...


1

According to the GitHub documentation on custom 404s you are out of luck: Custom 404s only work when they are served from the root of a Pages domain, for example a project using a custom domain or a user pages repository. It looks like sub-folders are not supported. Only the root folder.


1

I eventually gave in and solved this with a Apache config redirect (although I wanted to do it with pure DNS it looks like this is not possible...) <VirtualHost *:80> DocumentRoot /www/html/firstdomain.com ServerName firstdomain.com RedirectMatch 301 ^(.*)$ http://seconddomain.com$1 ErrorLog logs/firstdomain.com-error_log TransferLog ...


1

See Fork a repo / Clone your fork.



Only top voted, non community-wiki answers of a minimum length are eligible