gethugothemes / dot-hugo

Dot - Hugo Documentation Theme
https://gethugothemes.com/products/dot/?utm_source=dot_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
260 stars 148 forks source link

Error: module "dot" not found #171

Closed bashfulrobot closed 2 years ago

bashfulrobot commented 2 years ago

Hi there, I am following the setup instruction and ending up with an Error: module "dot" not found; error.

Hugo Version

❯ hugo version
hugo v0.89.0-DEV-E55466CE+extended linux/amd64 BuildDate=2021-10-05T15:48:42Z

OS Version

❯ cat /etc/lsb-release
───────┬──────────────────────────────
       │ File: /etc/lsb-release
───────┼──────────────────────────────
   1   │ DISTRIB_ID=Ubuntu
   2   │ DISTRIB_RELEASE=21.04
   3   │ DISTRIB_CODENAME=hirsute
   4   │ DISTRIB_DESCRIPTION="Ubuntu 21.04"
───────┴──────────────────────────────

Theme Setup Process

❯ hugo new site kb
Congratulations! Your new Hugo site is created in /home/dustin/Documents/devel/hugo/kb.
<snip>
❯ cd kb/themes
❯ git clone git@github.com:themefisher/dot-hugo.git
Cloning into 'dot-hugo'...
<snip>
Resolving deltas: 100% (481/481), done.
❯ cd ../../kb
❯ cp -r themes/dot-hugo/exampleSite/* .
❯ hugo server
Error: module "dot" not found; either add it as a Hugo Module or store it in "/home/dustin/Documents/devel/hugo/kb/themes".: module does not exist

I also tried a few versions of trying to use hugo server --themesDir . (in the kb project directory) that resulted in the same error.

Any suggestions or additional info needed?

Thank you for your time.

ashwin153 commented 2 years ago

You need to name the directory themes/dot instead of themes/dot-hugo, or use theme = "dot-hugo" instead of theme = "dot" in your config.toml.

tfsomrat commented 2 years ago

Hello @bashfulrobot

Thanks for your concern, this issue has been fixed. please pull the latest version. It will run perfectly.