alex-shpak / hugo-book

Hugo documentation theme as simple as plain book
https://hugo-book-demo.netlify.app
MIT License
3.21k stars 1.16k forks source link

Installation #588

Closed gavox closed 2 months ago

gavox commented 5 months ago

Hello, thanks for the work.

I've installed the theme on a repository I'm working on. Then used it on my laptop, worked flawlessly.

Then I moved to my desktop and the theme wouldnt work.

I am ran into a Warning:

WARN found no layout file for "html" for kind "

And then hugo does not generate a webpage (Page Not Found).

So, questions,

I'm at a loss here. Any help is greatly appreciated.

alex-shpak commented 5 months ago

Hello! depending on how you set it up, but in general you should have your git repository with site, where theme is either subfolder or submodule in that repository

so

your-repo
   content
   themes
      hugo-book (submodule or folder)

when moving between computers you need to clone it from your git together with theme files

here is an example of side with attached hugo-book theme https://gitlab.com/alex-shpak/netlifycms