This repository contains a minimal static website that is ready to be hosted with GitHub Pages.
index.html: Main landing page that GitHub Pages will serve at the site root.404.html: Custom 404 page used when a route is not found.styles.css: Global styles for the site.script.js: Optional JavaScript for small enhancements (smooth scrolling)..nojekyll: Disables Jekyll processing so files are served as plain static assets.
- Create a new repository on GitHub and push these files to it.
- Go to Settings → Pages in your repository.
- Under Build and deployment, set:
- Source:
Deploy from a branch - Branch: select your default branch (e.g.
main) and/ (root)as the folder.
- Source:
- Click Save.
- Wait a minute or two for GitHub Pages to deploy; your public URL will appear in the Pages section.
If you want to use a custom domain:
-
Configure DNS to point to GitHub Pages (see the official GitHub Pages docs).
-
Create a
CNAMEfile at the repository root that contains only your domain name, for example:example.com