Skip to content

Website Not Displaying Correctly on GitHub Pages #84077

Answered by seyLu
yararajjoub asked this question in Pages
Discussion options

You must be logged in to vote

Hi @yararajjoub,

I've taken a look at your commit history and noticed that you created a static.yaml workflow and then reverted that change afterwards. First, on your repo settings, change build and deploy source from workflow to branch, then select /(root).

GitHub pages looks for index.html at the root directory, and if it can't find it, it will look for index.md or in your case README.md.

Root directory, meaning, having a folder structure like:

images
 |- ...
index.html
style.css
README.md

and not:

You can read more at GitHub Pages docs: Creating your site.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yararajjoub
Comment options

Answer selected by yararajjoub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Question
2 participants