-
Select Topic AreaQuestion BodyHow do I turn off Jekyll and have GitHub Pages simply copy files to create the site? https://github.com/sidewayss/rAF That's my repo. It is its own website, with an index.html file in the root folder, and html files in sub-directories as appropriate. I copy it directly from my Apache24/htdocs folder into my local clone of the repo for git and GitHub. It doesn't need any extra processing. I also use the underscore character to start the names of some of my javascript files and that messes with Jekyll - just another reason to turn it off. The other issue is the README.md file in the root folder. Ideally that would be a symbolic link to the index.html, but I just tried that and Markdown doesn't read straight HTML, at least not mine. I certainly want GitHub Pages to use the index.html, but I'd also like the README that's displayed in the GitHub page for the repo to display correctly, and it does not now. Am I going to have to do some kind of HTML to Markdown conversion every time I update the index.html? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 22 replies
-
Create a file named .nojekyll in root directory it will disable jekyll.push your html css js files into a seperate branch called gh-pages.from your repository setting click github pages deploy from a branch and select gh-pages branch.that should solve your problem <3 |
Beta Was this translation helpful? Give feedback.
-
After sleeping on it, I'm changing my mind. I don't like adding duplicate files/folders to this repo just to get Pages working properly. I'm going to have to either abandon Pages while I continue to host it myself, or source my fonts and To summarize and answer the question:
The <USERNAME>.github.io repo is the correct solution for a situation like mine, that is already setup as a web site, or for anyone who wants to configure their favicon :) You have one core repo that is your Pages hompage's root directory. For example, I was able to revert to my original
At some point I'll delete my old |
Beta Was this translation helpful? Give feedback.
-
You're right, Jekyll can sometimes get in the way when you just want simple static file hosting! Here's how to turn Jekyll completely off and address your README.md situation:
Use code with caution. |
Beta Was this translation helpful? Give feedback.
-
@ThienNg0 - thanks for the redirect suggestion. Very interesting, but given the unreliability I think I'll pass. I'm going to setup a separate README.md written specifically for the github repo page, with links to other pages on Pages or my personal site, as you recommend. |
Beta Was this translation helpful? Give feedback.
-
@LiteBrite82 fyi - I updated my answer above because I came up with a proper solution: create a "fonts" repo and deploy it to Pages along with my |
Beta Was this translation helpful? Give feedback.
-
OK, sorry for the churn, but I found a more correct solution for the fonts in this gist: https://gist.github.com/codeadamca/bc3dcb6fc768ee1714918aa15cf13fad I implemented it successfully and updated my answer above to provide new detail. Note the favicon too. |
Beta Was this translation helpful? Give feedback.
After sleeping on it, I'm changing my mind. I don't like adding duplicate files/folders to this repo just to get Pages working properly. I'm going to have to either abandon Pages while I continue to host it myself, or source my fonts and
html-elements
from a common, absolute path source that starts with "https://". I'll figure it out later today.To summarize and answer the question:
.nojekyll
to the root folder of my repo did work correctly and bypassed Jekyll.