Source code for my website located at : https://prashantkhurana.com
Built using hugo and deployed via netlify.
- Clone the repo with recursive flag i.e.
git clone --recursive https://github.com/prashantkhurana/my-website
. - Make sure you have hugo installed.
- Running
hugo server -D
will start a hugo server with the contents of the website. - Running
hugo
will put the contents in public directory1. Make sure the new post is not a draft.draft:false
- Git push. Netlify listens to the public directory and will handle the deploy
Run hugo new blog/blog-title.md
Use hugo server -D -l -v
to enable verbose logging.
Footnotes
-
If needed , clear the public directory first (
rm -rf public/*
) and then run hugo. ↩