mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-23 05:30:41 +00:00
946 B
946 B
title | date | authors | tags | |||
---|---|---|---|---|---|---|
Authors | 2021-05-23T20:00:00+01:00 |
|
|
The theme supports multiple authors. The required information for each author need to be stored in a single Hugo data template per author.These files need to be stored in the data/authors/
directory in your projects root.
data/
└── authors
├── john-doe.yml
├── richard-roe.yml
└── Special User.yml
The name of the file will be used as the reference later, so if you prefer some kind of naming convention this need to covered by the file names. Example authors file:
name: John Doe
email: john@example.com
With the defined files, you can add as many authors as you want to the front matter of your posts:
---
title: Demo Posts
authors:
- john-doe
- Special User
---
My first demo post.