| 1 |
--- |
| 2 |
title: Introduction |
| 3 |
description: A brief introduction to Hugo modules. |
| 4 |
categories: [] |
| 5 |
keywords: [] |
| 6 |
weight: 10 |
| 7 |
--- |
| 8 |
|
| 9 |
Hugo uses modules as its fundamental organizational units. A module can be a full Hugo project or a smaller, reusable piece providing one or more of Hugo's seven component types: static files, content, layouts, data, assets, internationalization (i18n) resources, and archetypes. |
| 10 |
|
| 11 |
Modules are combinable in any arrangement, and external directories (including those from non-Hugo projects) can be mounted, effectively creating a single, unified file system. |
| 12 |
|
| 13 |
Some example projects: |
| 14 |
|
| 15 |
<https://github.com/bep/docuapi> |
| 16 |
: 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 directory structure. |
| 17 |
|
| 18 |
<https://github.com/bep/my-modular-site> |
| 19 |
: A simple site used for testing. |