Installation Sugam Pokharel
This guide walks you through installing the Sugo theme for Hugo.
Repository: github.com/psugam/sugo
Prerequisites
Before installing Sugo, make sure you have:
| Requirement | Minimum Version |
|---|
| Hugo Extended | 0.146.0+ |
| Git | 2.0+ |
| Node.js | 18.0+ |
| npm | 9.0+ |
Table: System Requirements
Verify installation
Expected format:
TEXT
1
| hugo v0.146.0+extended ...
|
Make sure this is the Extended Hugo build.
BASH
1
2
3
| git --version
node --version
npm --version
|
Installation methods
Option A: Git submodule (recommended)
1. Initialize git
BASH
1
2
| cd your-hugo-site
git init
|
2. Add theme submodule
BASH
1
| git submodule add https://github.com/psugam/sugo themes/sugo
|
3. Copy starter content/config
BASH
1
2
| cp -r themes/sugo/content ./
cp -r themes/sugo/hugo.toml ./
|
!
Important
If your site already has conflicting content or config values, merge carefully instead of blindly replacing files.
4. Set theme name
In your root hugo.toml:
5. Run locally
BASH
1
2
| npm install
npm run dev
|
Option B: Manual download
- Download ZIP from github.com/psugam/sugo
- Extract it
- Move it to
themes/sugo
BASH
1
| mv sugo-main your-hugo-site/themes/sugo
|
Then follow the same config and run steps above.
Updating the theme
Submodule update
BASH
1
| git submodule update --remote --merge
|
Manual update
- Download latest release/source
- Replace
themes/sugo - Review changes before deploy
Next steps