This repository contains the source code for my personal website, which is built using Hugo, a static site generator.
- Install Hugo.
- Clone this repository.
- Run
hugo server
to start the Hugo server. - Navigate to
localhost:1313
in your browser to view the site. - Make changes to the site and see them reflected in real time.
- To add a new post, run
hugo new <post-folder-in-content>/<post-name>.md
. For example,hugo new blog/my-first-post.md
. - To include the draft posts, run
hugo server -D
orhugo server --buildDrafts
. - When you're done, run
hugo
to build the site. - Build the site by running
hugo
. - In the
docs
folder, you'll find the generated static site. - Commit and push the changes to the
master
branch. - The site will be automatically deployed to GitHub Pages. The branch to be deployed is configured on GitHub -> Settings -> Pages -> Source: choose Deploy from a branch; Branch: choose master, /docs.