Skip to content

Using doks theme with hugo serve blank page #603

Answered by h-enk
wphromma asked this question in Support
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wphromma
Comment options

@h-enk
Comment options

Answer selected by wphromma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants