Skip to content

Fix deprecation warnings#1815

Open
deining wants to merge 1 commit intopeaceiris:mainfrom
deining:fix-deprecation-warnings
Open

Fix deprecation warnings#1815
deining wants to merge 1 commit intopeaceiris:mainfrom
deining:fix-deprecation-warnings

Conversation

@deining
Copy link

@deining deining commented Jul 30, 2024

When previewing the example site with latest hugo version 0.130.0, deprecation warnings are emitted

WARN  deprecated: .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in a future release. Use hugo.IsServer instead.
WARN  deprecated: .Site.DisqusShortname was deprecated in Hugo v0.120.0 and will be removed in a future release. Use .Site.Config.Services.Disqus.Shortname instead.

This PR fixes this issue.
This PR also renames config.yaml to hugo.yaml in different places.

@deining deining force-pushed the fix-deprecation-warnings branch from 63c385b to 74bea06 Compare July 30, 2024 20:25
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.

1 participant