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

Fix PublishDate parameter #37

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Conversation

Staudey
Copy link
Member

@Staudey Staudey commented Sep 10, 2024

Also rename from PublishedDate, since PublishDate seems to be the default

This fixes a warning on (re)building the site

WARN calling IsSet with unsupported type "ptr" (*hugolib.pageState) will always return false.

I think this is what this statement was supposed to accomplish, but I'm not 100% sure, so this is a separate PR from the deprecation fix. There's no PublishedDate (or now PublishDate) set for anything at the moment either way, as far as I can tell. When I set one for a random blog post it gets applied just fine with this PR.

Also rename from PublishedDate, as PublishDate seems to be the default

Fixes a warning on (re-)building the site

Signed-off-by: Thomas Staudinger <[email protected]>
@Staudey
Copy link
Member Author

Staudey commented Sep 10, 2024

Ported from getsolus/solus-hugo-theme#4

Copy link
Member

@EbonJaeger EbonJaeger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work fine for me.

@EbonJaeger EbonJaeger merged commit a4ec595 into getsolus:main Sep 11, 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

Successfully merging this pull request may close these issues.

2 participants