Skip to content

Commit

Permalink
Update deprecated code
Browse files Browse the repository at this point in the history
- site.IsMultiLingual -> hugo.IsMultilingual
  • Loading branch information
martignoni committed Oct 16, 2024
1 parent 341905c commit 0b9b36e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ User-agent: *
{{- end }}
{{ end }}
Sitemap: {{ "sitemap.xml" | absURL -}}
{{- if site.IsMultiLingual }}
{{- if hugo.IsMultilingual }}
{{ range site.Languages -}}
Sitemap: {{ printf "%s/sitemap.xml" .Lang | absURL }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{{ end }}
</ul>
{{ end }}
{{ if site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
<ul class="nav navbar-nav navbar-right">
<li id="language-switch" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-globe fa-lg" aria-hidden="true"></i><span id="language-name">{{ .Language.LanguageName }}</span></a>
Expand Down

0 comments on commit 0b9b36e

Please sign in to comment.