This theme is created for Hugo SSG using Tailwind CSS. It's good for blogging.
You need to install Hugo first before using this theme. Please follow the official installation guide.
hugo version
hugo new site myNewHugoSite
Hugo site will be created in myNewHugoSite
folder.
Clone this repo inside your themes
folder.
cd myNewHugoSite/themes
git clone https://github.com/namwa/deep-blue-theme.git
Copy all the contents of the myNewHugoSite/themes/deep-blue-theme/exampleSite
folder
to root folder of your Hugo site, ie myNewHugoSite/
To copy the files using terminal. Make sure that you're in the project root, i.e the myNewHugoSite
folder.
cp -a themes/deep-blue-theme/exampleSite/. .
Update your project root config.toml (you can use config.yaml format too).
You need to update theme
and themesDir
values in myNewHugoSite/config.toml
theme = 'deep-blue-theme'
themesDir = 'themes'
Set up the configurations in config.toml
.
reference
To generate the Hugo site, from the root folder ie myNewHugoSite
hugo
For local development, run Hugo's built in local server.
hugo server
Your local site will be served at localhost:1313
.
You can change content of each section by using YAML files in data
directory.
For editing the theme. Note that this theme is using Tailwind CSS.
-
Go to
themes/deep-blue-theme
directory and runnpm run watch
-
Run
hugo server
on the root directory and see the site locally athttp://localhost:1313/
.
-
Go to
themes/deep-blue-theme
directory and runnpm run build
This will minify the generated CSS. -
Run
hugo
on the root directory to build the whole site.