Website Not Displaying Correctly on GitHub Pages #84077
-
Select Topic AreaQuestion BodyHello! I am facing an issue with my personal website hosted on GitHub Pages. When I visit my GitHub Pages link (https://yararajjoub.github.io/My_Portfolio/), I only see the README content instead of the actual website content. The main HTML file is named index.html, and it is located in the root directory of my repository. I have selected Main/root from Pages. Could you help me with that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @yararajjoub,I've taken a look at your commit history and noticed that you created a GitHub pages looks for Root directory, meaning, having a folder structure like: images
|- ...
index.html
style.css
README.md You can read more at GitHub Pages docs: Creating your site. |
Beta Was this translation helpful? Give feedback.
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 forindex.md
or in your caseREADME.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.