To deploy under shyamalschandra.github.io/mahajan_masterpiece/:
-
Create Repository:
- Repository name:
mahajan_masterpiece - Owner:
shyamalschandra - Make it public
- Repository name:
-
Push Code:
git init git add . git commit -m "Initial commit: Jekyll site setup" git remote add origin https://github.com/shyamalschandra/mahajan_masterpiece.git git branch -M main git push -u origin main
-
Enable GitHub Pages:
- Go to repository Settings → Pages
- Source: Deploy from branch
main→/ (root) - Site will be live at:
https://shyamalschandra.github.io/mahajan_masterpiece/
You can have multiple GitHub Pages sites:
- Main site:
shyamalschandra.github.io(repository:shyamalschandra.github.io) - Project 1:
shyamalschandra.github.io/mahajan_masterpiece/(repository:mahajan_masterpiece) - Project 2:
shyamalschandra.github.io/another-project/(repository:another-project) - Project 3:
shyamalschandra.github.io/yet-another/(repository:yet-another)
All can coexist under the same GitHub account!
_config.yml- Jekyll configuration (configured for project page)_layouts/default.html- Main layout templateindex.md- Homepage (Markdown, processed by Jekyll)index.html- Static HTML version (backup)Gemfile- Ruby dependencies.github/workflows/jekyll.yml- CI/CD workflow
# Install dependencies
bundle install
# Run local server (with baseurl)
bundle exec jekyll serve --baseurl /mahajan_masterpiece
# Or use the default (will use baseurl from _config.yml)
bundle exec jekyll serve
# Visit http://localhost:4000/mahajan_masterpiece/- Repository Name: Can be any name (e.g.,
mahajan_masterpiece) - URL Format:
https://shyamalschandra.github.io/mahajan_masterpiece/ - Base URL: Configured in
_config.ymlas/mahajan_masterpiece - Public Repository: Required for free GitHub Pages hosting
- Build Time: First deployment takes 1-5 minutes
- Updates: Push to
mainbranch triggers automatic rebuild
If you want a custom domain (e.g., mahajan-masterpiece.com):
- Create repository:
mahajan_masterpiece - Enable Pages: Settings → Pages → Custom domain:
mahajan-masterpiece.com - Configure DNS settings
- Update
_config.yml:url: "https://mahajan-masterpiece.com" baseurl: ""
- Site not updating: Check GitHub Actions tab for build errors
- 404 errors: Verify
index.mdorindex.htmlexists - Build failures: Check
_config.ymlsyntax - Links broken: Ensure
baseurlis correctly set in_config.yml
For detailed setup instructions, see GITHUB_PAGES_SETUP.md.
For information about multiple sites, see GITHUB_PAGES_MULTIPLE_SITES.md.