Create a new hugo website or open your existing hugo site.
Add the theme to your hugo site
Use as a git submodule:
|
|
Clone the repository (one-off, updating the theme may be harder later):
|
|
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:
|
|