Last active
August 29, 2019 21:22
-
-
Save xeaone/bd699ba1e59ca4dbfbcfd1f0d881c00e to your computer and use it in GitHub Desktop.
Github Pages Base Tag Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.location.hostname.indexOf('github.io') === -1 ? null : document.querySelector('base').href = '/' + window.location.pathname.split('/')[1] + '/'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment