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 data in site config is not formatted correctly in a post #117

Closed
georgew509 opened this issue Nov 6, 2024 · 5 comments
Closed

Author data in site config is not formatted correctly in a post #117

georgew509 opened this issue Nov 6, 2024 · 5 comments

Comments

@georgew509
Copy link

georgew509 commented Nov 6, 2024

I created a new site and installed the Zen theme. I added my Author info to the site config:

params:
  author:
    name: "George Wilder"

What I see for that Author line in the Post summary and the Post:

map[name:George Wilder] - December 12, 2023

If I define the author in the post front matter:
author: "George Wilder"

it works fine (no map[]).

Did I do something wrong or is this an issue with the theme?

@frjo
Copy link
Owner

frjo commented Nov 6, 2024

I believe this issue is fixed in v4. See https://github.com/frjo/hugo-theme-zen/releases

The changes from v3 to v4 is not that big. The big difference is that v4 now requires Hugo v0.124 or later.

@georgew509
Copy link
Author

georgew509 commented Nov 6, 2024 via email

@frjo
Copy link
Owner

frjo commented Nov 6, 2024

You found a bug. I was using $.Param "author" that will fall back to the global params if the page param does not exist. Have replaced it with .Params.author now.

Please test the latest code and report back if it work for you. If it does I will make a new release.

Thanks for reporting this!

@georgew509
Copy link
Author

georgew509 commented Nov 6, 2024 via email

@frjo
Copy link
Owner

frjo commented Nov 6, 2024

@frjo frjo closed this as completed Nov 6, 2024
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

2 participants