zeon-studio / hugoplate

Hugoplate is a free starter template built with Hugo and TailwindCSS that will save you hours of work.
https://zeon.studio/preview?project=hugoplate
MIT License
899 stars 243 forks source link

Installation in existing Hugo project #83

Closed vinRosso closed 9 months ago

vinRosso commented 10 months ago

I've got a Hugo project in which I want to use this theme. [WIN 11]

For all the themes I've encountered until now it worked like this:

  1. Submodule theme in Hugo project
    cd path/to/hugo/project
    git submodule add https://github.com/zeon-studio/hugoplate.git themes/hugoplate
  2. Change the content of hugo.toml so that
    theme = 'hugoplate'
  3. Enjoy
    hugo server

    But doing this is giving me this error: error calling partialCached: partial "favicon" not found I checked other issues but I couldn't find clear solutions: npm install from #1 gives this error: npm ERR! enoent ENOENT: no such file or directory, open 'path/to/hugo/project/package.json' npm run update-modules from #29 gives the same error as above go mod init example.com from #68 doesn't work either :(

I'm not really a developer so if anyone could help me I would be glad.

tfsomrat commented 10 months ago

Hey @vinRosso, Sorry to hear that. I want to let you know that this theme has some dependencies that needs to be installed. I am afraid it won't work as a git submodule. what you can do is, create a fresh start with this process, and then copy your content folder from existing site, and paste here. it will be simpler. thanks