Favicon with GitHub Pages

Yes, you can. Put this into the head part of your webpage: <link rel=”shortcut icon” type=”image/x-icon” href=”https://stackoverflow.com/questions/35037482/favicon.ico”> It is important to not put the slash before the favicon.ico part. Put the favicon.ico file in your repository’s home directory.

How do I set up GitHub Pages to redirect DNS requests from a subdomain (e.g. www) to the top-level domain (TLD, Apex record)?

Short answer Step 1: Add a new file CNAME to your GitHub Pages repository containing only one line: your top-level domain name. E.g.: example.com Step 2: [Optional] but highly recommended 2.1: Remove all other top-level records (prefixed with @) of type A from your DNS configuration. 2.2: Remove a CNAME record for the second-level domain … Read more

Cross-Origin Resource Sharing on GitHub Pages

EDIT: Yay! Looks like GitHub Pages now supports CORS: https://twitter.com/invisiblecomma/status/575219895308324864 This can be verified by curling a request to enable-cors.org (which is hosted on GitHub Pages). Running this command: curl -v enable-cors.org > /dev/null returns an Access-Control-Allow-Origin: * header. There’s no way to support CORS on GitHub Pages, though I’d love to see this feature. … Read more