π Create an Academic Website with AcademicPages on GitHub Pages
Table of Contents
- π 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
- π 5. Install Jekyll Locally (Optional)
- π 6. Customize Your Site
- π 7. Commit and Push Changes to GitHub
- π 8. Set a Custom Domain (Optional)
- π Updating the AcademicPages Template
- π― Troubleshooting
- π More Resources
π 1. Fork the AcademicPages Repository
- Go to the AcademicPages GitHub repository.
- Click Fork (top right corner) to create a copy in your GitHub account.
π 2. Rename the Repository
- Go to Settings β Rename the repository to
miftah-ahmad-choiri.github.io
(replacemiftah-ahmad-choiri
with your GitHub username). - This is required for GitHub Pages to host the website.
π 3. Enable GitHub Pages
- Navigate to Settings β Pages.
- Under Source, select main branch and save.
- Your website will be available at https://miftah-ahmad-choiri.github.io in a few minutes.
π 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
- Install Ruby via RubyInstaller
- Install Bundler and Jekyll:
gem install jekyll bundler
πΉ macOS / Linux
- Install Ruby and Jekyll:
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:
- Site title, author, email, and social links.
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:
index.md
β Home Page_pages/cv.md
β CV Page_pages/publications.md
β Publications Page_pages/blog.md
β Blog Page
βοΈ 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)
- Buy a domain (e.g., from Namecheap).
- Add a
CNAME
file in the repository with your domain name. - 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?
- Check Settings β Pages in GitHub.
- Ensure main branch is selected as the source.
β Jekyll Errors Locally?
- Run
bundle install
beforebundle exec jekyll serve
. - Ensure you have the correct Ruby and Bundler versions.
π More Resources
- πΉ AcademicPages GitHub
- πΉ GitHub Pages Docs
- πΉ Jekyll Docs
π 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! π