https://github.com/jmooring/hugo-module-content
An example of a Hugo module that provides content
https://github.com/jmooring/hugo-module-content
hugo hugo-module
Last synced: 3 months ago
JSON representation
An example of a Hugo module that provides content
- Host: GitHub
- URL: https://github.com/jmooring/hugo-module-content
- Owner: jmooring
- License: mit
- Created: 2021-08-04T05:26:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-20T18:20:33.000Z (8 months ago)
- Last Synced: 2025-03-19T02:27:51.480Z (4 months ago)
- Topics: hugo, hugo-module
- Homepage:
- Size: 2.03 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hugo Module – Content
This is an example of a Hugo content module.
## Structure
```text
hugo-module-content/
├── assets/
│ ├── images/
│ │ ├── a.jpg
│ │ ├── b.jpg
│ │ └── c.jpg
│ └── videos/
│ ├── a.mp4
│ └── b.mp4
├── content/
│ └── articles/
│ ├── article-1/
│ │ ├── a.jpg
│ │ └── index.md
│ ├── article-2/
│ │ ├── b.jpg
│ │ └── index.md
│ └── article-3/
│ ├── c.jpg
│ └── index.md
├── data/
│ └── fruit.json
└── config.toml
```## Configuration
To add this module to your project, initialize your project as a Hugo module:
```text
hugo mod init foo
```In the above, `foo` is typically something like `github.com/user/project`.
Then add this to your site configuration:
```text
[[module.imports]]
path = 'github.com/jmooring/hugo-module-content'
```