Skip to content

cham11ng/sagarchamling.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

748cb0f · Apr 24, 2024
Oct 27, 2023
Oct 21, 2023
Jan 28, 2024
Mar 27, 2024
Feb 25, 2024
Apr 24, 2024
Mar 5, 2024
Oct 21, 2023
Apr 24, 2024
Apr 24, 2024
Jan 27, 2024
Oct 26, 2023
Oct 21, 2023
Oct 8, 2023
Oct 8, 2023
Oct 21, 2023
Oct 21, 2023
Oct 18, 2023
Feb 20, 2024
Feb 20, 2024
Feb 20, 2024
Feb 20, 2024
Oct 8, 2023
Oct 21, 2023

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 [email protected]: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