Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.mp4

content/
└── articles/
├── article-1/
│ ├── a.jpg
│ └── index.md
├── article-2/
│ ├── b.jpg
│ └── index.md
└── article-3/
├── c.jpg
└── index.md

data/
└── 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'
```