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

Author key is used on article listing page instead of the author name #13

Closed
ryanwalls opened this issue May 27, 2016 · 8 comments
Closed

Comments

@ryanwalls
Copy link
Contributor

My site is configured for multiple authors.

e.g.

author:
  david:
    name: "David Hasselhoff"
    bio: "Don't Hassle the Hoff"
    location: "Baltimore, MD"
    thumbnail: "images/avatar.jpg"
  pamela:
    name: "Pamela Anderson"
    bio: "Little known fact, I am vegan"
    location: "Canada"
    thumbnail: "images/pamela.jpg"

On the home page with all the articles listed, the key for the author shows beside the date. E.g. david | 27 May 2016 instead of the full name David Hasselhoff | 27 May 2016

@dencold
Copy link
Owner

dencold commented May 29, 2016

Yep, also my own preference. I like showing shortnames when displaying authors in a list template. Will have a think on this and see if I can make this work for both of us.

@ryanwalls
Copy link
Contributor Author

@dencold Yeah, this is a low priority. The short names are fine for me.

dencold added a commit that referenced this issue Aug 29, 2016
- now have first/last name as well as display name settings
- addresses #13
@dencold
Copy link
Owner

dencold commented Aug 29, 2016

@ryanwalls this is now also fixed. I have been monitoring the efforts to standardize Author metadata on hugo:
gohugoio/hugo#1850

We now use firstName lastName and id in the config.yaml for author metadata. Make sure these are set for hasper to pull into its content generation. The short names used in the site are derived from the id field. So if you'd like to see your full name in post summaries, just use your full name as the id.

Hope that helps.

@dencold dencold closed this as completed Aug 29, 2016
@kirtan403
Copy link

@dencold Author page is not getting generated by default. Is there anything I want do for it?

@dencold
Copy link
Owner

dencold commented Feb 28, 2017

Hi @kirtan403. Author pages are generated by creating a markdown file in a sub-directory of content called author. So if you posted with a username of kirtan403, for example, you could just have something like this:

my-hugo-site/
├── content/
│   ├── author/
│       ├── kirtan403.md

Let me know if that helps. Also, please create new issues when raising these kind of questions, this ticket has been closed out. Thanks!

@kirtan403
Copy link

kirtan403 commented Feb 28, 2017

@dencold Sure, I'll take care of it.

I tried and it created the index.html inside author in public folder. What should be the content of the kirtan.md file? I created the empty file for testing and didn't work.

I am new to hugo. Migrating my ghost blog to hugo. Sorry if I missed some basics.

UPDATE: After looking at the template, I got it working. Thanks 😄

@dencold
Copy link
Owner

dencold commented Feb 28, 2017

Great, glad to hear it @kirtan403. Note that the markdown file can have anything you'd like. You can check out the way I did it on my blog here:
https://www.dencold.com/author/dennis/

The markdown for this is located on github:
https://github.com/dencold/dencold-dot-com/blob/master/content/author/dennis.md
https://raw.githubusercontent.com/dencold/dencold-dot-com/master/content/author/dennis.md

Have fun getting creative :)

@kirtan403
Copy link

Thank you so much :)

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

No branches or pull requests

3 participants