This tutorial shows simple steps you need to take to set up your personal website using GitHub Pages and Jekyll templates. It is completely free! You can also find official document page, YouTube tutorials, and blogs online.
To avoid building from scratch, start with a template. There are many templates on Github. Here are a few that focus on academia. We will use al-folio as an example in this blog.
https://github.com/alshedivat/al-folio, click the green button Use this template and select Create a new repository. Follow the instructions to create a new repo. Remember to use your_github_name/your_github_name.github.io as the new repository name. This will allow GitHub Page to work.your_github_name/your_github_name.github.io, click Code and clone the repo. You can also choose to open with GitHub Desktop. Here is a command line example.git clone https://github.com/your_github_name/your_github_name.github.io.git
cd your_github_name.github.io
Auto-regeneration: enabled for 'Path/to/your_github_name.github.io'
Server address: http://127.0.0.1:4000
http://127.0.0.1:4000). You will see the same template as shown here.Now we will make some changes and deploy your website using Github Pages.
_config.yml file in the repo, set url to https://your_github_name.github.io and leave baseurl empty.https://github.com/your_github_name/your_github_name.github.io. Go to Settings --> Actions --> General --> Action permissions --> Allow all actions and reusable workflows. Go to Settings --> Actions --> General --> Workflow permissions --> Read and write permissions. Click Save at the bottom._config.yml file. Commit and push your changes. This will trigger the deploy action.git add _config.yml
git commit -m "update name"
git push
gh-pages. Go to Settings --> Pages --> Build and deployment, change Source --> Deploy from a branch, Branch --> gh-pages (Important).https://your_github_name.github.io.If you would like to keep updated with the upstream template, you can do so by creating a new workflow.
Settings -> Actions -> General -> Workflow permissions, check Allow GitHub Actions to create and approve pull requests and save your changes.your_github_name.github.io/.github/workflows. Create a sync.yml file with the following content: ```bash name: Sync from template on: # cronjob trigger schedule:workflow_dispatch: jobs: repo-sync: runs-on: ubuntu-latest steps: # To use this repository’s private action, you must check out the repository
# Assuming the current directory is <your-repo-name>
$ git remote add upstream https://github.com/alshedivat/al-folio.git
$ git fetch upstream
$ git rebase v0.9.0