If creating a new entry via the terminal:
- The Hugo terminal command for creating a new
print
item for an issue is:
This will create new file athugo new print/p-issue-5.md
content/print/p-issue-5.md
. The new file will be created according to the archetype for articles atroot/archetypes/print.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¶
---
title: "Print Article X ⚫ 🖶"
date: "2023-07-13T16:03:24+03:00"
author: "file-creator-put-your-name-here"
draft: true
print: "article/sample-article.md"
keywords: [print]
---
2. Instructions to file creator¶
File naming
- If this concerns an issue, say
issue-5.md
, name this filep-issue-5.md
. If this concerns an article sayarticle-title.md
, name this filep-article-title.md
YAML Fields
- Put your name in the field
author
inside “quotation marks” as in->author: "creators name"
- Set the title to:
- Issue X Print (for issues, where X is the issue number or name)
- Article title Print (for articles)
- Set the correct print destination (e.g. “issue/issue-x.md” or “article/article-name.md”). ERRORS WILL BREAK THE SITE.
- Set the draft flag accordingly (false will make this public)
- Delete this comment section.
- Git commit and push your changes if/when applicable, providing a commit message describing your changes.
- Done!
Note: Items that are not public/published (draft: true
), cannot have a public/published print.
Note: Print items should not have any content under the YAML header.