Skip to content

cham11ng/sagarchamling.com

Repository files navigation

intro

Welcome to my blogging website.

Deploy to Github Pages CC BY-NC-SA 4.0

prerequisites

  • Install Homebrew
  • Install Bun
  • Install Git
  • Install Go
  • Install Hugo - Make sure you install latest version of hugo(>=0.119.0).

contributing

Feel free to send pull requests.

setup and run

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

adding folder

# Syntax
hugo new --kind folder blogs/<folder-name>/_index.md

# Example
hugo new --kind folder blogs/tech/_index.md

adding blog

# Syntax
hugo new --kind blog blogs/<folder-name>/<blog-title>.md

# Example
hugo new --kind blog blogs/tech/how-i-setup-my-website.md

adding slides

# Syntax
hugo new --kind slides slides/<blog-title>.md

# Example
hugo new --kind slides slides/github-essentials.md

setup and run webp converter

brew install webp

make compress

inspired from

Hugo PaperMod.

license

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0