Welcome to my blogging website.
- Install Homebrew
- Install Bun
- Install Git
- Install Go
- Install Hugo - Make sure you install latest version of hugo(>=0.119.0).
Feel free to send pull requests.
git clone git@github.com:cham11ng/sagarchamling.com
cd sagarchamling.com
$ make
setup Setup site development mode.
upgrade Upgrade bun packages.
clean Clean old builds.
build Build minified version of site.
pretty Format site using prettier.
compress Compress all .png files into .webp format.
sync Synchronize with the latest theme.
help Help using make file.
$ make setup
or
$ bun install # install npm packages for pre-commit hook and prettier
$ git submodule update --init --recursive # clone submodule
$ git submodule update --remote --merge # update theme
hugo serve
# Syntax
hugo new --kind folder blogs/<folder-name>/_index.md
# Example
hugo new --kind folder blogs/tech/_index.md
# Syntax
hugo new --kind blog blogs/<folder-name>/<blog-title>.md
# Example
hugo new --kind blog blogs/tech/how-i-setup-my-website.md
# Syntax
hugo new --kind slides slides/<blog-title>.md
# Example
hugo new --kind slides slides/github-essentials.md
brew install webp
make compress
Hugo PaperMod.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.