- Run these commands.
hugo new site quickstart
cd quickstart
hugo new theme quick
echo "theme = 'quick'" >> hugo.toml
- Install Tailwind CSS css.TailwindCSS
- Create a new folder named
exampleSiteinside the theme and copy the content folder into it and create a simple hugo.toml file
baseURL = 'https://example.org/'
locale = 'en-us'
title = 'Test'
- While inside the
exampleSitefolder, run this command
hugo server --theme ../..
- Personally, I get this error
/themes/quick/layouts/_partials/head/css.html:5:38": execute of template failed: template: _partials/head/css.html:5:38: executing "_partials/head/css.html" at <.RelPermalink>: error calling RelPermalink: TAILWINDCSS: failed to transform "/css/main.css" (text/css). You need to install TailwindCSS CLI. See https://gohugo.io/functions/css/tailwindcss/: binary with name "tailwindcss" not found in PATH
N.B. Note in terminals where links are clickable, the colon in https://gohugo.io/functions/css/tailwindcss/: is added to the link, thus pointing to a non-existent page.