mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-30 22:43:25 +00:00
1.5 KiB
1.5 KiB
title | linktitle | description | date | publishdate | menu | weight | sections_weight | categories | keywords | draft | aliases | toc | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Hugo Modules | Hugo Modules Overview | How to use Hugo Modules. | 2017-02-01 | 2017-02-01 |
|
01 | 01 |
|
|
false |
|
true |
Hugo Modules are the core building blocks in Hugo. A module can be your main project or a smaller module providing one or more of the 7 component types defined in Hugo: static, content, layouts, data, assets, i18n, and archetypes.
You can combine modules in any combination you like, and even mount directories from non-Hugo projects, forming a big, virtual union file system.
Hugo Modules are powered by Go Modules. For more information about Go Modules, see:
This is all very much brand new and there are only a few example projects around:
- https://github.com/bep/docuapi is a theme that has been ported to Hugo Modules while testing this feature. It is a good example of a non-Hugo-project mounted into Hugo’s folder structure. It even shows a JS Bundler implementation in regular Go templates.
- https://github.com/bep/my-modular-site is a very simple site used for testing.