Live Demo:
👉 https://samirpaul1.github.io/blog
Created using Hugo and PaperMod.
Steps:
- Install Hugo
choco install hugo-extended -confirm
. - Make new post
hugo new posts/name-of-post.md
. - Run
hugo
to build static codes inside public directory for deploying on Netlify/Vercel. - Run
hugo server
to preview the site. - Use GitHub Actions to deploy on GitHub Pages.
- Update theme: Change SamirPaulb/hugo-PaperMod -> delete
themes/PaperMod
directory -> rungit clone https://github.com/SamirPaulb/hugo-PaperMod themes/PaperMod --depth=1
More instructions:
- https://github.com/SamirPaulb/hugo-PaperMod
- Theme Basic Documentation
- Theme Content Documentation
- For local development first install Chocolatey as administrator then install hugo
choco install hugo-extended -confirm
. - For deploying on Vercel add environment variable
0.92.0
read more. - Use GitHub Actions for deploying on GitHub Pages.
- For deploying on Netlify add netlify.toml and in config.toml give baseURL to Netlify domain.
- Store resources in the
/static/assets
directory and refer it by/assets/File_Name
. - To deploy on Netlify/Vercel change the baseURL of config.toml to Netlify domain.