Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T06:17:36.000Z (3 months ago)
- Last Synced: 2024-10-19T08:44:53.608Z (3 months ago)
- Topics: hugo, hugo-module
- Homepage:
- Size: 2.02 MB
- Stars: 4
- Watchers: 3
- 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
assets/
├── images/
│ ├── a.jpg
│ ├── b.jpg
│ └── c.jpg
└── videos/
├── a.mp4
└── b.mp4content/
└── articles/
├── article-1/
│ ├── a.jpg
│ └── index.md
├── article-2/
│ ├── b.jpg
│ └── index.md
└── article-3/
├── c.jpg
└── index.mddata/
└── fruit.json
```## 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'
```