简体   繁体   中英

GitHub Pages Not Rendering HTML or MD Files on Newly Created Repository

I've been working with GitHub Pages but for the life of me my pages will not render.

Yet 404 errors abound. Any thoughts?

What branch are you on?

GitHub Pages only currently renders files on the master branch. However, new repos do not create a master branch. They create a branch called main to avoid the racist overtones of the term master.

So you will need to create a new branch called master and add Jekyll and HTML files there. Commit and push to GitHub and your GitHub pages will work.

Basically, make sure your files are in the master branch. Soon GitHub Pages will likely use the main branch by default but not yet.

.... and I have been struggling like crazy thinking why my pages are not rendering! Thanks to both of you finally I see my page!

"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM