How to Setup Github for BeginnerπŸ’»

Create a GitHub repo named miftah-ahmad-choiri.github.io, push Jekyll files, enable GitHub Pages in settings, and visit https://miftah-ahmad-choiri.github.io

View on GitHub

πŸŽ“ Create an Academic Website with AcademicPages on GitHub Pages

Table of Contents


πŸ“Œ 1. Fork the AcademicPages Repository

πŸ“Œ 2. Rename the Repository

πŸ“Œ 3. Enable GitHub Pages

πŸ“Œ 4. Clone the Repository Locally

Open a terminal or command prompt and run:

git clone https://github.com/username/username.github.io
cd username.github.io

πŸ“Œ 5. Install Jekyll Locally (Optional)

If you want to test the website locally before pushing changes:

πŸ”Ή Windows

gem install jekyll bundler

πŸ”Ή macOS / Linux

brew install ruby
gem install jekyll bundler

Run Jekyll Locally

bundle exec jekyll serve

Visit http://localhost:4000 to preview.

πŸ“Œ 6. Customize Your Site

πŸ“ Edit _config.yml

Modify _config.yml to change:

title: "Your Name"
author: "Your Name"
email: "your-email@example.com"
github_username: "your-github"
linkedin_username: "your-linkedin"

πŸ“„ Edit Pages

Modify the Markdown files in the repository:

✏️ Adding Blog Posts

Create Markdown files inside _posts/:

---
title: "My First Blog Post"
date: 2025-02-02
author: "Your Name"
---
Welcome to my first blog post!

πŸ“Œ 7. Commit and Push Changes to GitHub

git add .
git commit -m "Customized AcademicPages site"
git push origin main

πŸ“Œ 8. Set a Custom Domain (Optional)

  1. Buy a domain (e.g., from Namecheap).
  2. Add a CNAME file in the repository with your domain name.
  3. Configure DNS records to point to GitHub Pages.

πŸ”„ Updating the AcademicPages Template

If the original AcademicPages repository updates, sync your fork:

git remote add upstream https://github.com/academicpages/academicpages.github.io
git fetch upstream
git merge upstream/main
git push origin main

🎯 Troubleshooting

❌ Website Not Showing?

❌ Jekyll Errors Locally?


πŸ“š More Resources

πŸš€ Enjoy your academic website! πŸŽ‰


βœ… Now you can copy and paste this directly into a Markdown file (README.md) or into your GitHub repository! Let me know if you need any improvements! πŸš€