mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
19
docs/content/en/hugo-modules/introduction.md
Normal file
19
docs/content/en/hugo-modules/introduction.md
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
title: Introduction
|
||||
description: A brief introduction to Hugo Modules.
|
||||
categories: []
|
||||
keywords: []
|
||||
weight: 10
|
||||
---
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Some example projects:
|
||||
|
||||
[https://github.com/bep/docuapi](https://github.com/bep/docuapi)
|
||||
: 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. It even shows a JS Bundler implementation in regular Go templates.
|
||||
|
||||
[https://github.com/bep/my-modular-site](https://github.com/bep/my-modular-site)
|
||||
: A simple site used for testing.
|
Reference in New Issue
Block a user