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