Fix deprecation warning emitted by hugo (#904)

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
Andreas Deininger
2024-03-19 17:26:49 +01:00
committed by GitHub
parent 600c50c71c
commit a69388d9b8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -157,8 +157,8 @@
{{ end }} {{ end }}
<!-- Keep backward compatibility with old config.yaml --> <!-- Keep backward compatibility with old config.yaml -->
{{ if site.DisqusShortname }} {{ if .Site.Config.Services.Disqus.Shortname }}
{{ partial "comments/disqus.html" (dict (slice "disqus" "shortName") site.DisqusShortname) }} {{ partial "comments/disqus.html" (dict (slice "disqus" "shortName") .Site.Config.Services.Disqus.Shortname) }}
{{ end }} {{ end }}
</div> </div>
+1 -1
View File
@@ -56,6 +56,6 @@
{{ end }} {{ end }}
<!-- Keep backwards compatibility and consistency with HUGO defaults --> <!-- Keep backwards compatibility and consistency with HUGO defaults -->
{{ if site.GoogleAnalytics }} {{ if .Site.Config.Services.GoogleAnalytics.ID }}
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
{{ end }} {{ end }}