Skip to content

Commit

Permalink
Fix deprecation warning emitted by hugo (#904)
Browse files Browse the repository at this point in the history
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
  • Loading branch information
deining and hossainemruz committed Mar 19, 2024
1 parent 600c50c commit a69388d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ <h1>{{ .Page.Title }}</h1>
{{ end }}

<!-- Keep backward compatibility with old config.yaml -->
{{ if site.DisqusShortname }}
{{ partial "comments/disqus.html" (dict (slice "disqus" "shortName") site.DisqusShortname) }}
{{ if .Site.Config.Services.Disqus.Shortname }}
{{ partial "comments/disqus.html" (dict (slice "disqus" "shortName") .Site.Config.Services.Disqus.Shortname) }}
{{ end }}

</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
{{ end }}

<!-- Keep backwards compatibility and consistency with HUGO defaults -->
{{ if site.GoogleAnalytics }}
{{ if .Site.Config.Services.GoogleAnalytics.ID }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}

0 comments on commit a69388d

Please sign in to comment.