jazzi
May 28, 2025, 9:26am
1
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.
irkode
May 28, 2025, 10:56am
2
it’s still in the theme:
<div class="social-icon-outer">
<div class="social-icon-container">
{{ range $index, $component := .Site.Social }}
{{ with $component }}
{{ $path := print "icons/social/" $index }}
<a href="{{ . }}">{{ partial $path $ }}</a>
<span class="hidden">{{ $component }}</span>
{{ end }}
{{ end }}
</div>
</div>
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
jazzi
May 28, 2025, 2:17pm
3
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
jazzi
May 29, 2025, 2:57pm
5
It works, thank you. So there are three files need to change:
config.yaml - change [social] to [params.social]
layouts\partials\seo\print.html - change .Site.Social to .Site.Params.Social
layouts\partials\social-links\social-links.html - change .Site.Social to .Site.Params.Social
1 Like