Skip to content

SarthakMakhija/tech-lessons-posts

Repository files navigation

Introduction

tech-lessons.in is a Hugo based blog and this repository is the core content of the blog.

Running on local

# Clone the repository
git clone https://github.com/SarthakMakhija/tech-lessons-posts.git        

# Assuming npm is installed, install the dependencies
npm i

# Start the server
npm start

Publish to Github Pages

# Creates a local gh-pages branch which will contain the public folder
git checkout -b gh-pages

# Build the website
npm i && HUGO_ENVIRONMENT=production hugo --gc --minify

# Change to public/ directory
cd public

# Initialize the git repository
git init
git add .
git commit -m "Website build"

# Add the remote
git remote add website git@github.com:SarthakMakhija/sarthakmakhija.github.io.git

# Push the content
git push website main --force

# May need to provide the custom domain 
Provide the custom domain [here](https://github.com/SarthakMakhija/sarthakmakhija.github.io/settings/pages)

Website repository

About

Repository containing the blog posts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published