Simple solution:
To fix the issue, simply delete your index.html
file and rename your site.html
to index.html
.
Detailed explanation:
Upon reviewing your repository, it appears that you have two distinct html
files. It seems like you want to deploy the contents of site.html
.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, inital-scale=1.0"/>
<title>Document</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
// Content here
</body>
The other file seems to be an empty document only containing the head
section:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, inital-scale=1.0"/>
<title>Document</title>
<link rel="stylesheet" href="style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@300&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Crimson+Text&display=swap" rel="stylesheet">
</head>
When examining your GitHub pages deployment source code, it is evident that what is being deployed is an empty index.html
:
https://i.sstatic.net/hCQvN.png
In essence, your deployment process is working correctly, but the content being shown may not be as expected. To resolve this, consider merging the HTML files or removing the empty one.