Skip to main content
44 votes
Accepted

Caching assets in website served from GitHub pages

Officially confirmed to be impossible. Answer from GitHub support: Thanks for reaching out to GitHub Support about using GitHub Pages We set the following Cache-Control header for all GitHub Pages ...
reducing activity's user avatar
39 votes

Analytics on GitHub pages

No. The only way to track analytics for a GitHub Pages page/site is via a third-party service such as Clicky, Google Analytics, Gauges, Plausible, etc.
Avi Flax's user avatar
  • 537
19 votes

Am I allowed to host a commerical website on GitHub Pages?

As of May 23th, 2018 much of this seems to have changed. From the terms of service I. Additional Terms for GitHub Pages Short version: The GitHub Pages hosting service is subject to certain rules, in ...
gman's user avatar
  • 813
11 votes

Am I allowed to host a commerical website on GitHub Pages?

It might be worth noting that the clause posted in the accepted answer is no longer in the GitHub Terms of Service. Here is the updated clause: You may use the GitHub Pages static hosting service ...
nii236's user avatar
  • 111
10 votes

Analytics on GitHub pages

GitHub has provided native "GitHub Traffic Analytics" since 2014. Besides tracking visitors to your repository, it provides a 'content' panel where you can see the traffic to individual pages within ...
chiappa's user avatar
  • 452
8 votes
Accepted

How to add comments in blog posts on GitHub-pages websites

This answer was originally on Stack Overflow here (now deleted). Utterances comments (what I recommend and use) You can use GitHub Issues themselves, in a public repo, as a commenting system, via a ...
Gabriel Staples's user avatar
8 votes

Am I allowed to host a commerical website on GitHub Pages?

Updated policy as of September 2020 You can use GitHub Pages to host a website about yourself, your organization, or your project directly from a GitHub repository. Prohibited uses GitHub Pages is ...
Venky's user avatar
  • 81
7 votes
Accepted

Can GitHub Pages render asciidoc?

Jekyll does support rendering AsciiDoc via a plugin, however this isn't part of the default GitHub Pages Jekyll setup. GitHub lets you configure Jekyll plugins by adding them to the _config.yml file. ...
John C's user avatar
  • 9,360
4 votes

Analytics on GitHub pages

Such a feature does not exist yet natively in GitHub. If it does, it is not mentioned in the documentation either at Viewing traffic to a repository, or at About GitHub Pages. They do collect data ...
Guilherme Dellagustin's user avatar
4 votes
Accepted

GitHub pages 404 File Not Found error

It seems the problem was the incorrect casing of Index.HTML. This should be all lowercase. ie. index.html. I didn't realize the file names were also case sensitive. The case-sensitivity, in this ...
MrWhite's user avatar
  • 4,783
3 votes
Accepted

How can I move a Google Sites website to GitHub pages?

You can use a web crawler/scraper like HTTrack or wget to download your entire website as a folder of HTML, CSS, image, and other files. Once you've got your website downloaded, you can commit and ...
Christopher Su's user avatar
2 votes

Use GitHub pages on multiple repositories when one has a custom CNAME already?

One solution would be to rename your username.github.io repository to something else, so it is no longer considered to be your special "user/organization pages" repository. It can continue using the ...
Christopher Su's user avatar
2 votes
Accepted

Publish GitHub repo subfolder to GitHub pages, keeping subfolder path

If branch gh-pages already exists, delete it. git branch -D gh-pages Create a new branch gh-pages without any content. git checkout --orphan gh-pages Remove all initially cached files from the ...
Michael's user avatar
  • 316
2 votes

GitHub Pages - I cannot access Automatic Page Generator

I can confirm that the Project Page Generator is not available anymore. No matter if you create a User or organization site and have the website in the repository's master branch or a Project site ...
Michael Troger's user avatar
2 votes
Accepted

How to customize pages hosted at GitHub.io overriding default layout?

It works without choosing a theme. Add this to /_layouts/default.html <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content=...
villares's user avatar
  • 397
2 votes
Accepted

How to run pyodide on my Gitub-pages website?

The answer is yes. All you need to do is to include Pyodide to your web page: <head> <script type="text/javascript"> window.languagePluginUrl = 'https://pyodide-cdn2.iodide....
Aray Karjauv's user avatar
1 vote
Accepted

How to search for all outbound links of a particular website?

site: The site tag restricts your search results to a particular website and the correct usage would be site:whatevery1says.github.io inurl: The inurl tag restricts search results to those URLs that ...
Blindspots's user avatar
  • 6,035
1 vote

Creating a static page for GitHub project

To publish a GitHub page under the root domain of your github.io username, you should set up a repository named username.github.io, and it will take care of it. Besides that, any other repository you ...
arieljannai's user avatar
  • 3,924
1 vote

How can I host a custom HTTPS domain at GitHub?

As stated, HTTPS is not currently supported by GitHub Pages. However, HTTPS for custom domains is one of our most frequent features requests, and I can tell you that it's something we're working on ...
lofidevops's user avatar
1 vote
Accepted

Github pages are not generating

The "Automatic Page Generator" button was retired some time ago, which is why it can't found in the current doco (unfortunately they haven't updated the video to match). The same process can be ...
John C's user avatar
  • 9,360
1 vote

Can I view a specific commit to the gh-pages branch on github.io?

No, the rendered versions of GitHub pages are not archived. Some alternatives: You can build such an archive yourself by following for example these instructions - although this would become a bit ...
janpio's user avatar
  • 340
1 vote

Blogging on Medium but retain versions

You should be able to publish your blog normally and then run a tool like https://github.com/aarongustafson/jekyll-crosspost-to-medium that just posts the blog contents to Medium using their API. If ...
fiatjaf's user avatar
  • 738
1 vote
Accepted

How to remove or hide other contributors in my GitHub

GitHub takes these commits from your Git history. You can probably go back through the history of your Git repository and modify those commits, then force push the changes to overwrite the history ...
janpio's user avatar
  • 340
1 vote

How to add a new repo/page to my GitHub hosted website?

I'm not sure what you exactly want. Github Pages explicitly hosts websites based on Jekyll and is unable to help you in hosting any other kind of backend. If you want to have a website for other ...
xji's user avatar
  • 358
1 vote

Can't find source of GitHub Pages website

Also, it is quite possible to have a GitHub page active (and public) for a private repository.
Weier's user avatar
  • 1,171

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