Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created an archetype for new authors #1445

Merged
merged 3 commits into from Dec 7, 2019
Merged

Conversation

SamGuay
Copy link
Contributor

@SamGuay SamGuay commented Nov 28, 2019

Purpose

There was not archetype for authors so I thought this would be useful for people who need to create many authors. Instead of copying and pasting the admin/_index.md, they can simply use the hugo command hugo new authors/FIRSTNAME-LASTNAME and have an empty but commented _index.md file ready to be filled in for each author. Since Hugo 0.49, complete directories can be used as archetype templates, so I also uploaded the default avatar.jpg inside the /archetypes/authors/ to provide the classic avatar picture for any author created by hugo.

Documentation

You can view the PR for the documentation here.

I thought this would be useful for people who need to create many authors. Instead of copying and pasting the `admin/_index.md`, they can simply use the hugo command `hugo new authors/FIRSTNAME-LASTNAME` and have an empty but commented _index.md file ready to be filled in for each author.
Was a bit late when I push, forget to add "{{ replace .Name "-" " " | title }}" instead of First and Last Name
When people create a new author, the default picture will be created in the folder
@gcushen gcushen merged commit 023a9fe into HugoBlox:master Dec 7, 2019
@gcushen
Copy link
Collaborator

gcushen commented Dec 7, 2019

Thanks for your contribution!

SJamieson pushed a commit to SJamieson/hugo-academic that referenced this pull request Jan 22, 2020
I thought this would be useful for people who need to create many authors. Instead of copying and pasting the `admin/_index.md`, they can simply use the hugo command `hugo new authors/FIRSTNAME-LASTNAME` and have an empty but commented _index.md file ready to be filled in for each author.

Close HugoBlox#1445
YoungWilliamZ pushed a commit to YoungWilliamZ/hugo-academic that referenced this pull request Jul 29, 2020
I thought this would be useful for people who need to create many authors. Instead of copying and pasting the `admin/_index.md`, they can simply use the hugo command `hugo new authors/FIRSTNAME-LASTNAME` and have an empty but commented _index.md file ready to be filled in for each author.

Close HugoBlox#1445
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants