walkermatt / gh-pages-symlink-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Pages symlink test

QUESTION:

Do symbolic links work with GitHub Pages?

ANSWER:

YES! but only in non-jekyll mode.

The key is to place a empty file .nojekyll in root folder of gh-pages.

(That will disable the jekyll support of your github pages site.)

TEST

  1. This:

http://sidnicious.github.io/gh-pages-symlink-test/link.txt

... is an exact copy of this:

http://sidnicious.github.io/gh-pages-symlink-test/target.txt

  1. This

http://sidnicious.github.io/gh-pages-symlink-test/docs/current/

... goes to:

http://sidnicious.github.io/gh-pages-symlink-test/docs/hello/

Any questions?

About