If creating a new entry via the terminal:
- The Hugo terminal command for creating a new
contributor
is:
This will create new file athugo new contributor/name-surname.md
content/contributor/name-surname.md
. The new file will be created according to the archetype for articles atroot/archetypes/contributor.md
. The new file will be created as a draft (draft: true
) and will contain the instruction steps below. Please complete all required steps before committing or publishing new content.
If creating a new entry via the online preview page:
- the new entry will be empty. Please use the sample §⁄YAML header below as starting point, and also copy to the new file the §⁄instructions provided below.
1. Sample YAML Header¶
If creating a new entry via the online preview page, the new entry will be created as an empty file. Please use the sample YAML file below as starting point, and also copy to the new file the instructions provided below.
---
title: "Jane Contributor ⚫ 🧜"
date: "2023-07-13T14:15:20+03:00"
author: "file-creator-put-your-name-here"
affiliation: "Some affiliation (optional; remove line if not applicable)"
draft: true
---
2. Archetype content¶
Name Surname is ….
contact: something at something dot edu
3. Instructions for contributor-file creator/editor¶
- Filename should follow the convention:
name-surname.md
- File creator insert your own name in the
author
field. - Set affiliation if applicable (
affiliation: "Some University"
) - Fill in content:
- bio
- contact email
- Delete this section.
- Set draft flag (note that
draft: false
will make this entry public). - Git commit and push your changes if/when applicable, providing a commit message describing your changes.