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.json
andtailwind.config.js
files from the theme/digitalgarden folder to the root folder of your the website - Run
npm install
to install required packages for theme - Run
npm i -g postcss-cli
to use PostCSS with Hugo build - Set
theme = 'digitalgarden'
in config.toml - Run
npm run dev
to 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