-
Hi, I am new to Hugo, and I just follow the get started guide from https://gohugo.io/getting-started/quick-start/ I can get the theme working with the theme I wonder if there is something I'm missing? how do you get it to work with Hugo? and FYI, I tried to use Kidnly advise how can I solve this issue. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Doks is not — on purpose — a standard Hugo theme. Unfortunately, Hugo does not provide a (solid) way to centralize dependency management. Doks uses npm to centralize dependency management — making it easy to update resources, build tooling, plugins, and build scripts. When you put Doks in the theme folder, it won't work, because Hugo does not support this — in the JavaScript world standard — npm setup. There are a number of reasons why I don't like setting up a theme as a Git submodule or a Hugo module. If you're interested /would like to know why, I wrote a little piece on that, see Adding a theme, part of the Using npm with Hugo series. So, the Quick Start is the way to get started with Doks! |
Beta Was this translation helpful? Give feedback.
Doks is not — on purpose — a standard Hugo theme.
Unfortunately, Hugo does not provide a (solid) way to centralize dependency management. Doks uses npm to centralize dependency management — making it easy to update resources, build tooling, plugins, and build scripts. When you put Doks in the theme folder, it won't work, because Hugo does not support this — in the JavaScript world standard — npm setup.
There are a number of reasons why I don't like setting up a theme as a Git submodule or a Hugo module. If you're interested /would like to know why, I wrote a little piece on that, see Adding a theme, part of the Using npm with Hugo series.
So, the Quick Start is the way to get started with…