razonyang / hugo-theme-bootstrap-comments

1 stars 0 forks source link

en/posts/getting-started/ #33

Closed utterances-bot closed 2 years ago

utterances-bot commented 2 years ago

Getting Started - Hugo Bootstrap

https://hbs.razonyang.com/en/posts/getting-started/

Resonanz commented 2 years ago
C:\Users\myname\GitHub\myblog>hugo server
Error: module "hugo-theme-bootstrap" not found; either add it as a Hugo Module or store it in "C:\\Users\\robwa\\GitHub\\myblog\\themes".: module does not exist
razonyang commented 2 years ago

@Resonanz If you’re making a fresh clone, you will be need to update your submodule via git submodule update --init --recursive or clone with submodule git clone --recursive <repo>.

It seems that there are no files exists in the themes directory.

Resonanz commented 2 years ago
$ hugo new site myblog

WORKS FINE.

$ cd myblog

WORKS FINE.

$ git init

WORKS FINE.

$ git submodule add https://github.com/razonyang/hugo-theme-bootstrap themes/$ hugo-theme-bootstrap

WORKS FINE.

FOR WINDOWS...

xcopy .\themes\hugo-theme-bootstrap\exampleSite /E

THIS FAILS AS THE FOLDER IS "$", NOT "hugo-theme-bootstrap"

$ hugo server

THIS FAILS WITH:

Error: module "hugo-theme-bootstrap" not found; either add it as a Hugo Module or store it in "C:\Users\robwa\GitHub\myblog\themes".: module does not exist

git submodule update --init --recursive

C:\Users\robwa\GitHub\myblog>hugo server
Error: module "hugo-theme-bootstrap" not found; either add it as a Hugo Module or store it in "C:\\Users\\robwa\\GitHub\\myblog\\themes".: module does not exist
razonyang commented 2 years ago

@Resonanz Thanks for your feedback.

There is a typo of command git submodule add https://github.com/razonyang/hugo-theme-bootstrap themes/$ hugo-theme-bootstrap. It should be git submodule add https://github.com/razonyang/hugo-theme-bootstrap themes/hugo-theme-bootstrap.

I'll fix the typo later.