1. Theme Installation
Planted December 19, 2021

Create a new hugo website or open your existing hugo site.
Add the theme to your hugo site
Use as a git submodule:
git submodule add https://github.com/apvarun/digital-garden-hugo-theme.git themes/digitalgarden
Clone the repository (one-off, updating the theme may be harder later):
git clone https://github.com/apvarun/digital-garden-hugo-theme.git themes/digitalgarden
Setup
- Copy
package.json,package-lock.jsonandtailwind.config.jsfiles from the theme/digitalgarden folder to the root folder of your the website - Run
npm installto install required packages for theme - Run
npm i -g postcss-clito use PostCSS with Hugo build - Set
theme = 'digitalgarden'in config.toml - Run
npm run devto start your local server
When deploying to services like Netlify or Vercel, use the following command for building your site:
npm i -g postcss-cli && npm run build
