hugo-theme-noteworthy icon indicating copy to clipboard operation
hugo-theme-noteworthy copied to clipboard

Use hugo.IsServer instead of deprecated .Site.IsServer

Open pgillet opened this issue 6 months ago • 0 comments

I had the following errors when building a site with the latest Hugo version:

ERROR deprecated: .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.133.0. Use hugo.IsServer instead.
ERROR deprecated: .Site.RSSLink was deprecated in Hugo v0.114.0 and will be removed in Hugo 0.133.0. Use the Output Format's Permalink method instead, e.g. .OutputFormats.Get "RSS".Permalink

What is done in this PR

  • Use hugo.IsServer instead of deprecated .Site.IsServer
  • Use Output Format's Permalink method instead of deprecated .Site.RSSLink (See Include reference feed)

pgillet avatar Aug 20 '24 09:08 pgillet