spf13 / hyde

Port of Mdo's excellent theme to Hugo
Other
559 stars 579 forks source link

fix(layouts/single) Site.DisqusShortname was deprecated in v0.120.0 #91

Closed ehdwn1991 closed 1 month ago

ehdwn1991 commented 1 month ago

Update Disqus Shortname to Use New Config Structure

Summary

This pull request updates the Disqus shortname configuration in the single.html template to follow Hugo's new configuration structure. The previous Site.DisqusShortname has been deprecated and replaced by Site.Config.Services.Disqus.Shortname.

For more details, please refer to the Hugomethods DisqusShortname integration.

Errors Details

Testing in Alpine based container.

hugo_builder  | ERROR deprecated: .Site.DisqusShortname was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.135.0. Use .Site.Config.Services.Disqus.Shortname instead.

This error occurred when attempting to render the single.html template for posts that include Disqus comments. By updating to the new configuration structure, the error is resolved, and future compatibility with Hugo is ensured.

Changes:

Thanks! Have a Good day!!😄