ERROR deprecated: .Site.Social was deprecated in Hugo v0.124.0 and subsequently removed. Implement taxonomy 'social' or use .Site.Params.Social instead

Hi,

The Hugo theme I use is Novela: GitHub - forestryio/hugo-theme-novela: Novela, the simplest way to start publishing with Hugo and Forestry.

I keep receiving the error as below though I changed [social] to [params.social] in the config.yaml already.

ERROR deprecated: .Site.Social was deprecated in Hugo v0.124.0 and subsequently removed. Implement taxonomy 'social' or use .Site.Params.Social instead.

it’s still in the theme:

you may want to raise an issue to the Novela theme.
in the meanwhile copy that file to you project layouts folder and adapt it there

Thank you.
I changed .Site.Social to .Site.Params.Social and still get same error.

<div class="social-icon-outer">
    <div class="social-icon-container">
        {{ range $index, $component := .Site.Params.Social }}
            {{ with $component }}
                {{ $path := print "icons/social/" $index }}
                <a href="{{ . }}">{{ partial $path $ }}</a>
                <span class="hidden">{{ $component }}</span>
            {{ end }}
        {{ end }}
    </div>
</div>

sry, first was a quick check on mobile - overseen one:

fix this, too: layouts\partials\seo\print.html


Hint: the theme got it’s latest commit 4 years ago - so an issue might not help :wink:

It works, thank you. So there are three files need to change:

  1. config.yaml - change [social] to [params.social]
  2. layouts\partials\seo\print.html - change .Site.Social to .Site.Params.Social
  3. layouts\partials\social-links\social-links.html - change .Site.Social to .Site.Params.Social
1 Like

Hey! I’m getting the same error ERROR Deprecated .Site.Social

hugo v0.142.0+extended linux/amd64 BuildDate=2025-01-24T00:00:00+00:00 VendorInfo-Fedora: 0.142.0-4.fc42

ERROR deprecated: Site. Social was deprecated in Hugo v0.124.0 and will be removed in Hugo 0.143.0. Implement taxonomy . Site.Params. Social instead.

I don’t able to see any kind of .Site.Social in the yaml file.

Please guide how to fix it

Welcome Rohit,

first the gory forum stuff: read and follow: Requesting Help

  • Don’t use old topics for support requests
    open a new one with details. if you feel it’s likely the same add a link.
  • Show what you have
    such kind of errors heavily depend on
    • your config
    • your layouts
    • your used theme (if any)

If you use the same theme as the OP than just do the same

if not or that does not help

The approach to solve is the same but may vary dependent on the points above.