Skip to content

[Bug]: object type author is displayed incorrectly in post list view #1814

@myl7

Description

@myl7

What happened?

If params.author is set to an object like {"name": "Foo", "email": "bar@example.com"}, while RSS author is generated fine, authors on the right bottom side of each item in the post list view are displayed like map[...]....

After checking the source, while https://github.com/adityatelange/hugo-PaperMod/blob/master/layouts/_default/rss.xml and https://gohugo.io/templates/rss/ both accept author emails set in an object, https://github.com/adityatelange/hugo-PaperMod/blob/master/layouts/partials/author.html prints the author whose type is interface {} directly as $author.

Steps to reproduce

  1. Set params.author to {"name": "Foo", "email": "bar@example.com"} in hugo.yaml
  2. hugo server and check the index page
Image

Hugo Version

Hugo >= 0.146.0 (Recommended - Minimum version required for PaperMod)

PaperMod Version

Branch master, 1cf5327

What kind of devices are you seeing the problem on?

Desktop

What browsers are you seeing the problem on?

Chrome

Browser Version

Google Chrome 142.0.7444.175

Relevant log output

[No log]

Repository/Source Code link where this issue can be reproduced

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions