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

hugolib: Conditionally suppress .Site.Author deprecation notice #12298

Merged

Conversation

jmooring
Copy link
Member

Suppress the .Site.Author deprecation notice unless the Author key is present and not empty in the site configuration.

Closes #12297

Suppress the .Site.Author deprecation notice unless the Author key
is present and not empty in the site configuration.

Closes gohugoio#12297
@jmooring
Copy link
Member Author

This may not be the most elegant solution to the underlying problem, but I think it's the simplest.

@bep bep merged commit e191774 into gohugoio:master Mar 26, 2024
8 checks passed
@jmooring jmooring deleted the fix/site-author-deprecation-notice-12297 branch March 26, 2024 13:21
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.

.Site.Author deprecation is logged when .Site.Author not called in template
2 participants